Packages and backups

The apt-get command

Classic Debian/Ubuntu tool to install and upgrade packages.

Syntax

sudo apt-get install|update|upgrade <paquete>Try it in the terminal →

Copy-ready examples

$ sudo apt-get updateRefresh the list

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • apt is the modern, friendlier version of apt-get.

Related commands

FAQ

Are apt and apt-get the same?

apt is the modern, friendlier interface; apt-get is the classic one, more stable in scripts.

What does apt-get update do?

It refreshes the list of available packages; it installs nothing.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course