Pacman

Utilities

pacman – package manager utility

Operations

-S, --syncSynchronize packages. Packages are installed directly from the remote repositories, including all dependencies required to run the packages.
-U, --upgradeUpgrade or add package(s) to the system and install the required dependencies from sync repositories.
-R, --removeRemove package(s) from the system.

Options

-y, –refreshDownload a fresh copy of the master package databases (repo.db) from the server(s) defined in pacman.conf(5).
-u, –sysupgradeUpgrades all packages that are out-of-date.

makepkg – package build utility

-s, --syncdepsInstall missing dependencies using pacman.
makepkg -s

Tasks

Update all

pacman -Syu

Install something

pacman -S package_name1 package_name2 ...
pacman -U zfs-linux-2.2.3_6.7.9.arch1.1-1-x86_64.pkg.tar.zst

Remove something

pacman -R zfs-linux

Documentation

https://wiki.archlinux.org/title/Pacman

https://man.archlinux.org/man/pacman.8.en

https://wiki.archlinux.org/title/makepkg

https://man.archlinux.org/man/makepkg.8.en