Copied to clipboard

apt-get

`apt-get` is a command line tool under Linux operating system, which is used to manage the installation, upgrade and removal of software packages.

Install package

Uninstall package

Clean up unused dependencies

Update software source

Upgrade installed packages

Upgrade system

Examples

  • Install package: sudo apt-get install <package>
  • Uninstall package: sudo apt-get remove <package>
  • Clean up unused dependencies: sudo apt-get autoremove
  • Update software source: sudo apt-get update
  • Upgrade installed packages: sudo apt-get upgrade
  • Upgrade system: sudo apt-get dist-upgrade

apt-get is an old command-line tool under the Linux operating system, which is used to manage the installation, upgrade, and removal of software packages. apt is a new generation of command-line tools that can perform all operations of apt-get, as well as some new features, such as concurrent downloads and progress output. Therefore, it is recommended to use the apt command instead of the apt-get command.