Completely remove package on Ubuntu / Debian by apt-get

This is a quick post to completely remove package on Ubuntu by apt-get command.Apt-get (Advanced Packaging Tool ) is a command line tool to manage the packages on Ubuntu / Debian system.

Remove the package on Ubuntu/Debian

Generally remove is the option used with apt-get command. But it do not remove the config files associated with the removed package.

Replace package-name with the package name which you want to remove.

apt-get remove package-name

Completely Remove the package on Ubuntu/Debian

To completely remove the package along with config files but not dependencies.

Replace package-name with the package name which you want to remove.

sudo apt-get --purge remove package-name