64位linux安裝32位庫
阿新 • • 發佈:2019-02-02
Mount the install DVD:
mkdir -p /mnt/RHEL
mount /dev/cdrom /mnt/RHEL
Or if you just have the ISO, you can use that instead:
mkdir -p /mnt/RHEL
mount -o loop /path/to/RHEL.iso /mnt/RHEL
Now make a Yum repository which uses the DVD as a repository:
/etc/yum.repos.d/rhel-dvd.repo [rhel-dvd] name=Red Hat Enterprise Linux $releasever - $basearch - DVD baseurl=file:///mnt/RHEL/Server/ enabled=1 gpgcheck=0
You should now be able to clean the yum cache, and install the 32-bit C library:
yum clean all
yum install glibc.i686
You'll see plenty of similar guides telling you to install and run the createrepo command but you don't need to do that. The RHEL disc already is a repository, it already has the /repodata/repomd.xml
However, if you take the RPM files on the RHEL disc and copy them somewhere else and start adding your own packages then you need createrepo to build the metadata for the new repository you have created.
轉自:http://stackoverflow.com/questions/15435751/installing-32-bit-libraries-glibc-on-64-bit-rhel-without-using-yum