yum
https://www.cyberciti.biz/faq/category/centos/
Install from DVD
vi /etc/yum.repos.d/CentOS-Media.repo
enabled=1
Check repos + DVD
yum --enablerepo=c5-media install pacakge-name
Skip Repos, DVD only (centos5/6)
yum --disablerepo=\* --enablerepo=c5-media install pacakge-name
yum --disablerepo=\* --enablerepo=c6-media install pacakge-name
Mount ISO
yum install createrepo
mkdir -p /mnt/iso/{1,2,3}
mount -o loop /path/to/centos1.iso /mnt/iso/1
CentOS6 dvd location
mount /dev/cdrom /mnt/iso1/
Create Repo
cd /mnt/iso
createrepo .
Edit/Create Config
yum clean all
vi /etc/yum.repos.d/iso.repo
[My ISO Repository] baseurl=file:///mnt/iso
enabled=1
Install as noraml
yum install package-name
yum unsorted
yum remove package
yum provides httpd
yum list package
yum search keyword
yum clean all
yum localinstall some.rpm
yum deplist package
yum grouplist | more
yum groupinstall 'Development Tools'
yum groupupdate 'Development Tools'
yum groupremove 'Development Tools'
yum list installed
cd ~
wget https://some/python.tgz
tar -xzvf python.tgz
cd python
./configure --prefix=/home/james/python
mkdir openssl111
curl https://ftp.openssl.org/source/old/1.1.1/opensslblehbleh --output openssl.tar.gz
tar xzvf openssl.tar.gz
cd openssl-1.1.1.j
./config --prefex=/home/james/openssl && make && make install
cd ../Python-3.10.9
./configure --with-openssl=/home/james/openssl && make
make install
yum search openssl
yum deplist PyOpenSSL.x86_64
yum search pip
yum deplist python3-pip
yum search python3
for p in $(yum deplist python3-3.6.8-18.el7.x86_64 | grep provider | awk '{print $2}'); do yum -y install $p; doneok