Installing and uninstalling .deb package
Debian uses .deb binary packages and you manually install and uninstall them using dpkg tool.
dpkg has lots of options but maybe the most important or used ones are:
- -i
- Installs and configures a package
- -r
- Removes the package but keeps the configuration files on your systems, thus you may reinstall it later and does not need to configure it again
- -p
- Purges a package, meaning it will remove the package and also all configuration files
How to use it
- To install a .deb package
sudo dpkg -i package.deb
- To uninstall a .deb package
sudo dpkg -r package
- To purge a .deb package
sudo dpkg -p package
Trackback URL for this post:
If you like this article, subscribe to our full rss
Please post your question in our forum and use comments only to leave your comments about the article, thanks.













And if possible use apt-get
And if possible use apt-get to install the app instead of dpkg.
Its true about yum - not sure about dpkg.
Yes you are right, it is
Yes you are right, it is always better to use apt-get (aptitude better yet), than dpkg
Guillermo Garron
Post new comment