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 repositity 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
free 100$ digital ocean credit