12

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? :'(

ShuaibKunji
  • 433
  • 2
  • 8
  • 20
  • 2
    What commands are you using to install software? Are you installing .deb files manually or getting software from the repositories? Please provide complete examples. – Seth Dec 21 '15 at 02:25
  • I don't think that older version for the intel installer works anymore although you could always give it a try. – mchid Dec 21 '15 at 02:49
  • Would appreciate if you mark whichever answer has helped as 'Accepted'. – Dhaval Simaria May 23 '16 at 13:58

5 Answers5

18
sudo apt-get purge [package]
sudo apt-get autoclean
sudo apt-get autoremove
Maldini
  • 140
  • 1
  • 8
  • 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. – mchid Dec 21 '15 at 03:00
  • 1
    It's: sudo apt-get --purge remove && sudo apt-get autoremove && sudo apt-get clean – ShuaibKunji May 11 '16 at 09:16
  • 1
    @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 – Jeremy Davis Mar 02 '18 at 03:56
7

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

shalih.ai
  • 348
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?

Dhaval Simaria
  • 795
  • 2
  • 12
  • 29
1

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.

mchid
  • 43,546
  • 8
  • 97
  • 150
0

sudo apt-get remove --purge {package-name}: This command removes the specified package from your system. The --purge flag ensures that not only the package but also its configuration files are removed. Replace {package-name} with the actual name of the package you want to remove.

sudo apt-get autoremove: After removing a package, there may be additional packages that were installed as dependencies but are no longer needed by any other package on your system. This command automatically removes such unnecessary packages, freeing up disk space.

sudo apt-get autoclean: This command removes any partially downloaded or obsolete package files from the package cache. It helps to keep the cache clean and prevents it from taking up unnecessary disk space.

sudo apt-get clean: This command removes all package files from the package cache, regardless of their current status. It can be used when you want to completely clear the package cache to free up disk space.

Remember to run these commands with sudo to execute them with root privileges, as administrative access is required to perform package operations and modify system files.