How to completely remove any program and its installation files?

79,568

Solution 1

sudo apt-get purge [package]
sudo apt-get autoclean
sudo apt-get autoremove

Solution 2

I usually use this command

sudo apt-get remove --purge {package-name}
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get clean

Hope this help you too

Solution 3

purge remove will remove about everything regarding the package packagename, but not the dependencies established during installation.

sudo apt-get purge --auto-remove [packagename]

This will remove the package along with the configuration files and dependencies.

For better understanding, you may refer to:

What is the correct way to completely remove an application?

Solution 4

You can run: sudo dpkg -P intel-linux-graphics-installer to get rid of that version.

Alternatively, this should work as well:

sudo apt-get purge intel-linux-graphics-installer

I'm not sure if the older version is still available but you can try the instructions here.

Share:
79,568

Related videos on Youtube

ShuaibKunji
Author by

ShuaibKunji

Updated on September 18, 2022

Comments

  • ShuaibKunji
    ShuaibKunji over 1 year

    Okay, I have noticed that whenever I installed the latest version of any software and then uninstalled it(even after using purge remove command from the terminal)because it doesn't support my distro(14.04.3 LTS amd64) and then tried installing an older version of the same software which is actually supposed to work on my distro, It still installs the latest version of that software which I had previously uninstalled. Even using terminal commands to uninstall the software using a .deb file was of no help. I faced this problem while installing steam but had to reinstall my entire O.S. to install steam properly which worked properly thanks to(Steam Install Error on 14.04 Ubuntu 64bit). Now I'm facing the same problem when I tried to install intel linux graphics installer. I had accidentally installed the latest version which only supports 15.10 and therefor every time I ran the program(at times even as a superuser) It showed an error which read "Distribution not supported". The I found this(Distribution not supported error when trying to install Intel Graphics Installer on Ubuntu 14.04) and so wanted to install the older version which is actually supposed to work on my but even via terminal installation and using the correct .deb file it kept installing the latest version of it which is unsupported on my pc. So please, can anyone tell me how I can completely remove the malfunctioning version and safely install the correct version? :'(

  • mchid
    mchid over 8 years
    Sorry guys, sudo apt purge is fine but autoclean and autoremove need apt-get and I can't retract my reject vote on that edit.
  • ShuaibKunji
    ShuaibKunji almost 8 years
    It's: sudo apt-get --purge remove && sudo apt-get autoremove && sudo apt-get clean
  • Jeremy Davis
    Jeremy Davis about 6 years
    @ShuaibKunji whilst sudo apt-get --purge remove works too, it's legacy functionality, the newer format is sudo apt-get purge, or in newer releases, just sudo apt purge