APT

Advanced Package Tool.


How Do I List All Available Packages?

$ apt-cache pkgnames

How Do I Find Out Package Name and Description of Software?

$ apt-cache search vsftpd

$ apt-cache pkgnames vsftpd

How Do I Check Package Information?

$ apt-cache show netcat

How Do I Check Dependencies for Specific Packages?

$ apt-cache showpkg vsftpd

How Do I Check statistics of Cache

$ apt-cache stats

How to Update System Packages

$ sudo apt-get update

How to Upgrade Software Packages

$ sudo apt-get upgrade

$ sudo apt-get dist-upgrade

How Do I Install or Upgrade Specific Packages?

$ sudo apt-get install netcat

How I can Install Multiple Packages?

$ sudo apt-get install nethogs goaccess

How to Install Several Packages using Wildcard

$ sudo apt-get install '*name*'

How to install Packages without Upgrading

$ sudo apt-get install packageName --no-upgrade

How to Upgrade Only Specific Packages

$ sudo apt-get install packageName --only-upgrade

How Do I Install Specific Package Version?

$ sudo apt-get install vsftpd=2.3.5-3ubuntu1

How Do I Remove Packages Without Configuration

$ sudo apt-get remove vsftpd

How Do I Completely Remove Packages

$ sudo apt-get purge vsftpd

$ sudo apt-get remove --purge vsftpd

How I Can Clean Up Disk Space

$ sudo apt-get clean

How Do I Download Only Source Code of Package

$ sudo apt-get --download-only source vsftpd

How Can I Download and Unpack a Package

$ sudo apt-get source vsftpd

How Can I Download, Unpack and Compile a Package

$ sudo apt-get --compile source goaccess

How Do I Download a Package Without Installing

$ sudo apt-get download nethogs

How Do I Check Change Log of Package?

$ sudo apt-get changelog vsftpd

How Do I Check Broken Dependencies?

$ sudo apt-get check

How Do I Search and Build Dependencies?

$ sudo apt-get build-dep netcat

How I Can Auto clean Apt-Get Cache?

$ sudo apt-get autoclean

How I Can Auto remove Installed Packages?

$ sudo apt-get autoremove vsftpd