RPM/YUM

The Yellowdog Updater, Modified (YUM) is a free and open-source command-line package-management utility for computers running the Linux operating system using the RPM Package Manager.

yum – Yellowdog Updater Modified

repositories are in /etc/yum.repos.d

repolist [all|enabled|disabled]

yum repolist

Refresh repo list:

rpm -Uvh https://mirror.centos.org/centos-7/7/os/x86_64/Packages/$(rpm --query centos-release).rpm
rpm -Uvh https://vault.centos.org/7.4.1708/os/x86_64/Packages/centos-release-7-4.1708.el7.centos.x86_64.rpm
yum-config-manager --add-repo=https://vault.centos.org/7.4.1708/os/x86_64/
/etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
baseurl=https://vault.centos.org/6.10/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

https://www.digitalocean.com/community/tutorials/how-to-set-up-and-use-yum-repositories-on-a-centos-6-vps

Tasks

Install local RPM with Yum:

yum localinstall sample_file.rpm

Install a package:

yum install ncurses-compat-libs-6.1-7.20180224.el8.x86_64

Install a packages that complains about dependencies when you know they’re here:

rpm -ivh --nodeps snfs-common-6.1.0-77524E.RedHat7.x86_64.rpm

Find a package holding a file:

[root@testsan ~]# yum provides libncurses.so.5
Last metadata expiration check: 2:47:00 ago on Fr 14 Aug 2020 06:37:43 UTC.
ncurses-compat-libs-6.1-7.20180224.el8.i686 : Ncurses compatibility libraries
Repo        : BaseOS
Matched from:
Provide    : libncurses.so.5