apt install
Install new packages.
Overview
Installs one or more packages. The package is fetched from the configured sources and installed on the system.
Syntax
sudo apt install [options] package_name(s)Common Options
-y, --yes, --assume-yesAutomatic yes to prompts.
--reinstallRe-Install packages that are already installed and at the newest version.
--download-onlyOnly download the package files, do not install them.
-f, --fix-brokenFix; attempt to correct a system with broken dependencies in place.
Examples
$ sudo apt install nginx
Install the nginx package.
$ sudo apt install python3-pip tree -y
Install python3-pip and tree, automatically confirming.
Related Commands
aptpackageinstalladdget software