User Tools

Site Tools


ubuntu:packages:install_a_package

Ubuntu - Packages - Install a package

Aptitude is preferred, but other approaches can be used if desired.

Using aptitude

First, update the package index. The package index is essentially a database of available packages from the repositories defined in the /etc/apt/sources.list file and in the /etc/apt/sources.list.d directory.

sudo aptitude update

Now install the package.

sudo aptitude install package_name

NOTE:APT keeps a copy of each downloaded .deb file in the directory /var/cache/apt/archives/.

In case of frequent updates, this directory can quickly take a lot of disk space with several versions of each package.

ubuntu/packages/install_a_package.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki