UNIX Package Managers

Checking Library Files

You can check whether a library file exists (without needing to know which package/package manager provided it) using...

ldconfig -p | grep LibrarynameWithoutAnySuffix

Examples...

ldconfig -p | grep libaio

  libaio.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libaio.so.1

ldconfig -p | grep libnuma

  libnuma.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libnuma.so.1

Convert RPM to DEB (dpkg)

Install Alien

sudo apt install alien

Convert

sudo alien inputfile.rpm

Install the resultant .deb file using dpkg

Comparison

apt install package

apt remove package

apt purge package

apt update

apt upgrade

apt autoremove

apt full-upgrade

apt search file

apt show package

apt list

apt list --installed


yum remove package



yum update



yum whatprovides file

yum info package


yum list installed

Install

Remove

Purge

Refreshes repository index

Upgrades all upgradable packages

Removes unwanted packages

Upgrades with auto dependencies

Search for package that provides file

Shows package details

Lists packages with installed status

Lists installed packages

medium-level

CLI

high-level

GUI

dnfdragora

Bibliography