apt-get Command Examples

Debian and Ubuntu package management utility. Search for packages using apt-cache. It is recommended to use apt when used interactively in Ubuntu versions 16.04 and later. More information: https://manned.org/apt-get.8.

apt-get update

apt-get install {{package}}

apt-get remove {{package}}

apt-get purge {{package}}

apt-get upgrade

apt-get autoclean

apt-get autoremove

apt-get dist-upgrade