compare","metadata":{}}]}}]},"metadata":{"auth":{},"testAttributes":{}},"context":{"page":{"pageUrl":"https://aws.amazon.com/compare/the-difference-between-apt-and-apt-get/"},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.129"},"refMap":{"manifest.js":"289765ed09","what-is-header.js":"2e0d22c000","what-is-header.rtl.css":"ccf4035484","what-is-header.css":"ce47058367","what-is-header.css.js":"004a4704e8","what-is-header.rtl.css.js":"f687973e4f"},"settings":{"templateMappings":{"category":"category","headline":"headline","primaryCTA":"primaryCTA","primaryCTAText":"primaryCTAText","primaryBreadcrumbText":"primaryBreadcrumbText","primaryBreadcrumbURL":"primaryBreadcrumbURL"}}}

whats-the-difference-between-apt-and-apt-get","metadata":{}}]}},{"fields":{"faqQuestion":"What are the similarities between apt and apt-get?","faqAnswer":"

Both apt and apt-get are package manager tools for Debian-based Linux distributions (or distros) such as Debian, Ubuntu, Linux Mint, and elementary OS. Similar tools exist, like aptitude and synaptic, although apt-get and apt are the system default. \n

Next, we describe similarities between apt and apt-get. \n

Interface \n

Both the apt command line utility tool and the apt-get command line utility tool are accessible via the Linux command line interface (CLI). To use the Linux CLI, open a terminal window or virtual terminal window. \n

Documentation \n

For the official overview of the apt utility and apt-get utility, enter apt or apt-get at the command prompt. This gives you a list of the most common apt commands and apt-get commands. \n

For example, apt update or apt-get update update the list of available software packages from the official repositories. The apt command and apt-get command also have options listed after them. For example, apt update --quiet provides a less detailed print output of the apt update command to the terminal. \n

Note that if you’re not logged in as an administrator, you will need to add the sudo command first to each apt command and apt-get command. For example, you would enter sudo apt-get update. \n

Use cases \n

The most common tasks in apt and apt-get are to install, update, and remove software packages. Software packages may be applications, libraries, utilities, and tools. \n

The following table shows common command syntax between the two. \n

\n \n \n \n

apt \n

apt-get \n \n

\n
    \n
  • apt install <package_name> \n
  • apt remove <package_name> \n
  • apt purge <package_name> \n
  • apt upgrade <package_name> \n
  • apt update \n \n
\n