LinuxCommandLibrary

Package manager

Install from repository

snap install [packageName]
copy
flatpak install [remote] [packageName]
copy
apt install [packageName]
copy
yum install [packageName]
copy
dnf install [packageName]
copy
pkg install [packageName]
copy
apt-get install [packageName]
copy
pacman -S [packageName]
copy
pip install [packageName]
copy
zypper install [packageName]
copy

Install from file

flatpak install [package. flatpakref]
copy
dpkg -i [package.deb]
copy
yum install [package.rpm]
copy
dnf install [package.rpm]
copy
pkg add [package.txz]
copy
pacman -U [package.tar.gz]
copy
pip install [/path/to/package]
copy

Remove/Uninstall

snap remove [packageName]
copy
apt-get remove [packageName]
copy
apt remove [packageName]
copy
dnf erase [packageName]
copy
pkg delete [packageName]
copy
pacman -R [packageName]
copy
pip uninstall [packageName]
copy
zypper rm [packageName]
copy

Find a package

snap find [query]
copy
flatpak search [query]
copy
apt-cache search [query]
copy
apt search [query]
copy
yum search [query]
copy
dnf search [query]
copy
pkg search [query]
copy
pacman -Ss [query]
copy
pip search [query]
copy
zypper search [packageName]
copy

View package info

snap info [packageName]
copy
apt-cache show [packageName]
copy
apt show [packageName]
copy
dpkg -s [packageName]
copy
yum info [packageName]
copy
dnf info [packageName]
copy
pkg info [packageName]
copy
pacman -Si [packageName]
copy
pip show [packageName]
copy

Update package lists

apt-get update
copy
apt update
copy
yum check-update
copy
dnf check-update
copy
pkg update
copy
pacman -S
copy
zypper refresh
copy

Upgrade installed packages

snap refresh
copy
flatpak update
copy
apt-get upgrade
copy
apt upgrade
copy
yum update
copy
dnf upgrade
copy
pkg upgrade
copy
pacman -Syu
copy
pip install [packageName] --upgrade
copy
zypper update
copy

Add repository source

add-apt-repository ppa:[userName]/[ppaName]
copy
add-apt-repository deb [url] [derivative]
copy
yum-config-manager --add-repo [url]
copy
dnf config-manager --add-repo [url]
copy
zypper addrepo [url] [alias]
copy
Copied to clipboard