How to install & uninstall debian package?


How to install & uninstall debian package?

When working with xubuntu or any other ubuntu flavors basically, you will find most of the software are in debian or .deb package. What exactly debian package? how to install and uninstall debian package from my computer? find out in this article.

Debian package is the standard software archive file for debian based linux distribution, since xubuntu is based on debian just like the rest of ubuntu flavors, therefore xubuntu accept debian package as the standard format for software packages.

How to install debian package
To install debian package you can use the dpkg tool which already comes preinstalled on your xubuntu operating system.
sudo dpkg -i [name-of-the-debian-package]
Example:
sudo dpkg -i something.deb
sudo dpkg -i /home/kernelpanic/very-important-software.deb
sudo dpkg -i whatever.deb

How to uninstall debian package
The dpkg tool can also be used to uninstall and installed debian package, simply add --remove parameter followed by the name of the package (not the name of the .deb package).
sudo dpkg --remove [package-name]
Example:
sudo dpkg --remove slack-desktop
sudo dpkg --remove brackets
sudo dpkg --remove sublime-text

Note: you can also use -r instead of --remove, it's the same thing and if you want also delete any config files, use --purge, the --remove will only uninstall but --purge will uninstall and delete config files related to that package.

Share this

Previous
Next Post »