# Package Managers


# Search for the package that provides a file

# YUM

yum whatprovides */NameOfFile

# APT

apt install -y apt-file
apt-file update
apt-file find NameOfFile
dpkg -S /bin/ls

# Install Package

# RPM

rpm -ivh <name of package.rpm>

# List Installed Packages

# RPM

rpm -qa

# APT

apt list --installed

# List Package Contents

# RPM

rpm -qlp <name of package.rpm>
Last Updated: 2024/05/21 11:21+00:00