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.