GNU Linux package installer Rosetta

Package installer Rosetta

| Action | Arch | Red Hat/Fedora | Debian/Ubuntu | SLES/openSUSE | Gentoo |
|—|—|—|—|—|
| Install a package(s) | pacman -S | dnf install | apt install | zypper install | emerge [-a] |
| Remove a package(s) | pacman -Rs | dnf remove | apt remove | zypper remove | emerge -C |
| Search for package(s) | pacman -Ss | dnf search | apt search | zypper search | emerge -S |
| Upgrade Packages | pacman -Syu | dnf upgrade | apt update; apt upgrade | zypper update | emerge -u world |

APT-GET – DEBIAN / UBUNTU

Commad Explanation
sudo apt-get update update repository database
sudo apt-get upgrade update system
sudo apt-get install aPackage install ‘aPackage’
sudo apt-get remove aPackage uninstall ‘aPackage’
sudo apt-cache search aPackage search for ‘aPackage’
sudo apt-cache show aPackage show ‘aPackage’ info

PACMAN – ARCH / MANJARO

Commad Explanation
sudo pacman -Syu update the repository database and update the system
sudo pacman -S aPackage install ‘aPackage’
sudo pacman -R aPackage uninstall ‘aPackage’
sudo pacman -Rs aPackage uninstall ‘aPackage’ and the dependancies which are now useless to the system
sudo pacman -Ss aPackage search for ‘aPackage’
sudo pacman -Sw aPackage donwload ‘aPackage’, but don’t install it
sudo pacman -U /path/aPackage.pkg.tar.gz uninstall ‘aPackage’ from a local path
sudo pacman -Q shows all the installed packages on the system
sudo pacman -Scc deletes every package stored in the pacman cache (/var/cache/pacman/pkg)

ZYPPER – OPENSUSE

Commad Explanation
sudo zypper update update the repository database and update the system
sudo zypper in aPackage install ‘aPackage’
sudo zypper rm aPackage uninstall ‘aPackage’