64位linux安装32位库

来源:互联网 发布:约瑟夫环 java 数组 编辑:程序博客网 时间:2024/04/29 18:50

Mount the install DVD:

mkdir -p /mnt/RHELmount /dev/cdrom /mnt/RHEL

Or if you just have the ISO, you can use that instead:

mkdir -p /mnt/RHELmount -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 - DVDbaseurl=file:///mnt/RHEL/Server/enabled=1gpgcheck=0

You should now be able to clean the yum cache, and install the 32-bit C library:

yum clean allyum 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 file which defines a repository.

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

0 0
原创粉丝点击