Basic APT Package Management Commands

by | Jun 26, 2009 | Linux Administrator

This article is only intended to show the basic APT (Advanced Packaging Tool) Package Management commands as they are used in Debian GNU/Linux and Ubuntu/Kubuntu.

debian open logo

debian open logo 50x61

The command below searches for all packages which contain the specified string.
test:~# apt-cache search string

The command below fetches the package from the Internet and installs it. If there are any unmet dependencies, it automatically fetches and installs everything required to make the package work.
test:~# apt-get install package

The command below removes the package.
test:~# apt-get remove package

The command below also removes the config files for the package.
test:~# apt-get --purge remove package

“apt-get” maintains a local database of packages, dependencies, locations of files, and etc. It will behave differently by assigning a different database for each different distribution.

Logo with image

About the Author:

WebDevRobert

Innovative Technology Professional, working on IT/OT Convergence & Security, in the foundry industry.

Website Designer/Developer since the mid 1990’s.

Apple, Linux and Network Administrator since the late 1990’s.

Background includes several years of IT/OT and IIoT Administration, Communications Infrastructure Design and Project Management.

Currently the VP of Technology for Oil City Iron Works, Inc., in Corsicana, TX.

Subscribe for Updates:

This field is for validation purposes and should be left unchanged.
This field is hidden when viewing the form

Next Steps: Sync an Email Add-On

To get the most out of your form, we suggest that you sync this form with an email add-on. To learn more about your email add-on options, visit the following page (https://www.gravityforms.com/the-8-best-email-plugins-for-wordpress-in-2020/). Important: Delete this tip before you publish the form.
Name(Required)
Email(Required)