What are common .deb commands?

080

Here are some common commands used to manage .deb files on Debian-based systems, such as Ubuntu:

1. Install a .deb File

To install a .deb file:

sudo dpkg -i package.deb

2. Remove a Package

To remove an installed package:

sudo dpkg -r package_name

3. List Installed Packages

To list all installed packages:

dpkg -l

4. Check Package Information

To get detailed information about a specific package:

dpkg -s package_name

5. List Files in a Package

To list all files installed by a specific package:

dpkg -L package_name

6. Fix Broken Dependencies

If you encounter dependency issues after installing a package, you can fix them with:

sudo apt-get install -f

7. Remove a Package and Its Configuration Files

To remove a package along with its configuration files:

sudo dpkg --purge package_name

8. Reconfigure an Installed Package

To reconfigure an already installed package:

sudo dpkg-reconfigure package_name

9. Extract a .deb File

To extract the contents of a .deb file without installing it:

dpkg-deb -x package.deb target_directory

Summary

These commands provide a basic toolkit for managing .deb files and packages on Debian-based systems. If you have more specific needs or questions, feel free to ask!

0 Comments

no data
Be the first to share your comment!