linux-cheatsheet

A cheatsheet with common linux commands and tools

View on GitHub

Package management

Overview over different package managers

Depending on the system used, there is a different package manager installed. Common ones are…

There are two low-level package formats: .rpm, which is used by DNF/Yum and ZYpp and .deb, which is used by Apt.

apt (Advanced Package Tools)

Apt ist used in Ubuntu distributions and many more.

The repos that are used as package database are stored in /etc/apt/sources.list.

Install & Upgrade packages (APT)

Manual install (APT)

Hold packages (APT)

Remove packages (APT)

Trick: remove and purge support a wildcard (*) at the end!

dnf (Dandified Yum)

Dnf is the newer version of Yum.

Dnf also includes “modules”: groups of packages.

Listing and finding packages (DNF)

Install & Upgrade packages (DNF)

Remove packages (DNF)

Working with repositories (DNF)

Working with modules (DNF)

(see documentation for details)



This cheatsheet was created by Rafael Urben. Found a mistake? Feel free to create a PR or open an issue on GitHub!