linux: lang: APT Commands

Install package

sudo apt install keyword

Search cache

apt-cache search keyword

File installed package location

sudo apt content keyword


sudo apt depends keyword

Search for a package

sudo apt search keyword

Show package info

sudo apt show keyword

Verify a package

sudo apt check keyword

List recommended missing packages of given package

sudo apt recommends keyword

Check package version

sudo apt version keyword

Update system packages

sudo apt update

Upgrade system

sudo apt upgrade

Remove unused packages

sudo apt autoremove

Clean old repository of downloaded packages

sudo apt autoclean

sudo apt clean

Remove packages with their configuration files

sudo apt purges keyword

install .deb package

sudo apt deb <keyword>.deb

apt help

apt help