How to uninstall a program on Ubuntu?

So you want to uninstall a program on Ubuntu? Or should I say you want to remove a package. Below command will help you do that.

sudo apt-get –purge autoremove <packagename>

<packagename> should be the name of your package, needless to say that package must be already installed on your system.

Example: sudo apt-get –purge autoremove ubuntu-restricted-extras

Note: autoremove also removes the dependencies that <packagename> depends on. So say I install package A, which depends on package B. Then I remove A, autoremove will remove B too. So if you want to keep B, just skip “autoremove” from the command.

Advertisements

Here's your chance to type xoxo

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s