Reference:
Upload CentOS ISO file. Ex: /root/CentOS-6.10-i386-bin-DVD1.iso
mkdir /media/CentOS/
mount -t iso9660 -o loop /root/CentOS-6.10-i386-bin-DVD1.iso /media/CentOS/
yum --disablerepo=\* --enablerepo=c6-media install libX11.i686
2022/9/10 update:
Reference: linux centos7 createrepo 创建本地 yum 仓库
CentOS 7 的方法:
Upload CentOS ISO file x64 and i386.
/root/CentOS-7-x86_64-DVD-2009.iso
/root/CentOS-7-i386-Everything-2009.iso
mkdir /media/x64
mkdir /media/i386
mount -t iso9660 -o loop /root/CentOS-7-i386-Everything-2009.iso /media/i386/
mount -t iso9660 -o loop /root/CentOS-7-x86_64-DVD-2009.iso /media/x64/
cd /etc/yum.repos.d/
mkdir bak
mv *.repo bak/
vi x64.repo
[x64]
name=CentOS7-x64
baseurl=file:///media/x64/
gpgcheck=0
enabled=1
vi i386.repo
[i386]
name=CentOS7-i386
baseurl=file:///media/i386/
gpgcheck=0
enabled=1
yum clean all
yum makecache
yum search glibc
yum install glibc.i686
yum repolist all
沒有留言:
張貼留言