What does apt do?

install and manage Debian/Ubuntu packages.

▸ Explain your own apt command →

apt examples, explained

$ apt install -y curl

  • aptinstall and manage Debian/Ubuntu packages
  • installinstall one or more packages
  • -yassume yes — do not prompt for confirmation
  • curlan argument passed to the command

$ apt upgrade --yes

  • aptinstall and manage Debian/Ubuntu packages
  • upgradeinstall newer versions of installed packages
  • --yesassume yes — do not prompt for confirmation

apt subcommands

install — install one or more packagesremove — remove packages but keep their configpurge — remove packages and their configupdate — refresh the list of available packagesupgrade — install newer versions of installed packagessearch — search for packages by keywordshow — show details about a packagelist — list packages (installed, upgradable, …)autoremove — remove packages no longer needed

apt flags & options

-yassume yes — do not prompt for confirmation
--yesassume yes — do not prompt for confirmation
--no-install-recommendsdo not install recommended extras

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.