Skip to main content

Debian and Ubuntu package management utility.

# To update the list of available packages and versions (it's recommended to run this before other apt-get commands):
apt-get update

# To install a package, or update it to the latest available version:
apt-get install package

# To remove a package:
apt-get remove package

# To upgrade all installed packages to their newest available versions:
apt-get upgrade

# To remove all packages that are no longer needed:
apt-get autoremove

# To upgrade installed packages (like upgrade), but remove obsolete packages and install additional packages to meet new dependencies:
apt-get dist-upgrade

# ---

# To search for a particular package by name or description:
apt-cache search <keyword>
# or using apt
apt search <keyword>