Linux Format

Clean up After Apps

-

1 Remove configurat­ion files

Normally, when you remove an applicatio­n using apt-get remove any configurat­ion files stored in the /etc directory are kept in case you later wish to reinstall it. To remove these along with the package, issue the following command instead (substitute with the package name):

$ sudo apt-get purge

2 Remove obsolete packages

When you remove packages from the Terminal, you’ll often be prompted to clean out related packages (typically dependenci­es) that aren’t being used elsewhere. To do this, use: sudo apt-get autoremove . Check all the packages being removed – some may be required for apps installed manually rather than through apt-get or your package managers.

3 Protect individual dependenci­es

If there’s a package you want to keep, cancel the operation (press N), then type this, substituti­ng with the package name: sudo apt-mark manual . This tells the package manager that the package is manually installed, so it’s ignored when you next run sudo apt-get autoremove . You can reverse this later with sudo apt-mark auto .

4 Clear more disk space

When you download package files for installati­on they remain on your PC. One way to keep them from taking up unnecessar­y space on your hard drive is to periodical­ly issue the following command:

$ sudo apt-get autoclean

This removes all but the latest version of installer packages.

 ??  ??
 ??  ??
 ??  ??
 ??  ??

Newspapers in English

Newspapers from Australia