Seeing there are various ways to install on Ubuntu. What are the various ways to uninstall items?
Which ways always work? How can I be sure something was uninstalled?
|
Seeing there are various ways to install on Ubuntu. What are the various ways to uninstall items? Which ways always work? How can I be sure something was uninstalled? |
||||
|
|
|
If the application has been installed via the package manager, all you have to do is run Sometimes applications can be split up into multiple packages (for example, many games have a separate package for their music). To make sure that you uninstall all related packages AND configuration files, you can type As for applications that have been manually compiled and installed, there's not always a single way to remove them. The best thing to do is consult the README/INSTALL file that accompanied the source package - if one exists. |
||||
|
|
It's important to note that when you install things, they often depend on other packages. When you fire off aptitude will automatically remove things (as well as having a nice interactive command line interface) You can also search for cruft in synaptic using the "local or obsolete" filter under the status section. |
|||||
|
|
Here's a rundown of the possible ways: If the package has been installed via a package manager, you can remove it with one of the tools provided with this purpose:
All these get the job done. You can start with the most user-friendly (Software Center) and continue to aptitude, if you need certain features or install or remove programs very frequently. Note that these operations remove the bulk of the program while sometimes leaving "configuration files" in locations such aus /etc/apache2. Most software doesn't have configuration files there; some server software ("daemons") do. In all but a few cases, keeping these configuration files will do no harm. If you want to remove everything, including configuration files, then you can use the "purge" operation. For aptitude, the command line is "aptitude purge." (Tommy's explication above of "purge" is not accurate. The "remove" operation, just like "purge", deletes all dependencies that were pulled in with the original program.) If the program tells you the package has been removed, you can be sure that the files are gone. Sometimes packages installed as a matter of dependency are not removed immediately. They will be eventually deleted, at a subsequent run. As to software installed from other channels (typically compiled from source), you're mostly forced to remove the files installed manually. They are often located somewhere in |
|||||
|
When you purge, |
||||
|
|