Packages and backups
The apt command
The Debian and Ubuntu package manager: installs, searches and updates software.
Syntax
sudo apt <update|install|search|list>Most useful options
updateRefreshes the package catalogueinstallInstalls a packagesearchSearches packageslist --installedLists what is installedCopy-ready examples
$ sudo apt updateRefresh the catalogue$ apt search figletSearch for a program$ sudo apt install figletInstall itYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- update only refreshes the list; it does not install or upgrade anything yet.
FAQ
What is the difference between update and upgrade?
update refreshes the catalogue; upgrade bumps what is installed.
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