apt

The apt command allows us to manage the applications, tools, and libraries installed on Ubuntu.

Upgrade Packages

$ sudo apt update
$ apt list --upgradable
$ sudo apt upgrade

List Installed Pacakges

$ apt list --installed
$ apt list --installed | grep --invert-match automatic

Install a List of Packages

I find it helpful to maintain a plain-text file of packages I regularly use.

$ touch ~/Aptfile
btop
build-essential
curl
fastfetch
git
inxi
libffi-dev
libncurses-dev
tree
xclip
$ cat ~/Aptfile | xargs sudo apt install -y

Create an alias

# ~/.bashrc
alias apti="cat $HOME/Aptfile | xargs sudo apt install -y"

When you need to install one or more packages, add them to ~/Aptfile and run apti.

results matching ""

    No results matching ""