Essential apt Commands

Some of the most popular Linux distributions, like Debian or Ubuntu, use .deb packages. For those systems, the Advanced Packaging Tool or apt is an essential tool working as the upper layer of the package managing stack, allowing package and dependency management as well as automatic updates.

These are the most important commands for yum:

  1. Check if updates are available: apt-get update

  2. Install new updates: apt-get upgrade or sudo apt-get dist-upgrade (like upgrade, but removes packages which are not part of the distribution anymore)

  3. Install a specific package: apt-get install [package]

  4. Remove a specific package: apt-get remove [package] or sudo apt-get purge [package] (removes also any configuration files)