apt
Linux · Packages · available in the simulator
What it does
Manages packages on Debian/Ubuntu.
Syntax
apt [subcomando] [paquete...]
Options and parameters
updateSubcommand: updates the list of available packages.
sudo apt updateupgradeSubcommand: upgrades installed packages.
sudo apt upgradeinstallSubcommand: installs one or more packages.
sudo apt install gitremoveSubcommand: removes a package while keeping its configuration.
purgeSubcommand: removes a package and deletes its configuration.
autoremoveSubcommand: removes unused packages and dependencies.
searchSubcommand: searches for packages by name or description.
apt search nginxshowSubcommand: displays package details.
-yAnswers yes to all prompts.
sudo apt install -y curl
Usage examples
sudo apt updatesudo apt install nginxsudo apt upgradesudo apt install gitapt search nginxsudo apt install -y curl
Notes and common mistakes
- Specific to Debian, Ubuntu, and derivatives. Requires administrative privileges to install.