Home / Software / Useful APT commands

Useful APT commands

Debian logo
In a previous post, we covered some of the basics of using apt-get to download and install packages for your Linux server. There are several commands that you can append to “apt-get” in order to perform various tasks. Here are a few:

1. “apt-get clean” By default, APT saves a cache of the packages you have downloaded in a directory on your computer. It might be store somewhere like /var/cache/apt/archive. Sometimes a package might be broken when you originally download it. After it is fixed, you would to delete the downloaded package and run apt-get again.

2. ‘”apt-get autoclean” Autoclean will essentially do the same thing as “clean”, but it will only remove the old packages.

3. “apt-get autoremove” APT automatically detects packages that you might have needed for dependencies of packages you no longer have or packages that you might not use, for various reasons. Running “apt-get autoremove” will wipe those packages out. Use it with caution.

4. “apt-get purge” This command needs a qualifier and can be used to delete all traces of a package from your Linux server, including the downloaded archives.

Check Also

Uk data center

Professional Data Centres In The UK

A professional data centre is a location in which various pieces of hardware are located …