Debian Package(dpkg)
- Package files have a .deb suffix and the DPKG database resides in /var/lib/dpkg directory.
- Naming convention for a binary file:
_-_.deb </code>
- List all packages installed:
dpkg -l
- List files installed in the package:
dpkg -L {package}
- Show a package’s information:
dpkg -s {package}
- To install or upgrade a package:
sudo dpkg -i {package}
- To remove a package, but keep its config file:
sudo dpkg -r {package}
- To remove a package including its config file:
sudo dpkg -P {package}
- To find what package a file belongs to:
dpkg -S {file_name}