Jan 14, 2022

Linux Package Managers

Package managers may do the same general things, like installing managing, and uninstalling applications, but they don't do everything the same. 

Common Linux package managers such as:

  • dpkg - Debian Package
  • apt - Advanced Package Tool
  • rpm - Redhat Packaging Manager
  • yum -Yellowdog Updater Modified
  • dnf - Dandified YUM

DNF uses 'libsolv' for dependency resolution with improved performance over YUM. DNF has fully documented API and well documented for creating new features. Most importantly, it uses less memory (to sync metadata from repositories), because it contains  around 29K lines of code.


dnfapt
Searching for applications
$ sudo dnf search zsh $ sudo apt search ^zsh
Finding an application's package
$ sudo dnf provides pgrep

$ sudo apt install apt-file
$ sudo apt -file update
$ sudo apt-file search /usr/bin/pgrep

Installing applications
$ sudo dnf install zsh
$ sudo dnf group list -v
$ sudo dnf group install design-suite
$ sudo dnf install @design-suite
$ sudo apt install zsh
Upgrading applications
$ sudo dnf update $ sudo apt update && apt upgrade
Removing applications
$ sudo dnf remove zsh $ sudo apt remove zsh
$ sudo apt purge zsh

 

Links:

  •  https://opensource.com/article/21/7/dnf-vs-apt