Skip to content
HxHippy

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-yes

Automatic yes to prompts.

--reinstall

Re-Install packages that are already installed and at the newest version.

--download-only

Only download the package files, do not install them.

-f, --fix-broken

Fix; 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.

aptpackageinstalladdget software