在不使用yum的情况下在64位RHEL上安装32位库(glibc) [英] Installing 32 bit libraries (glibc) on 64 bit RHEL without using yum

查看:549
本文介绍了在不使用yum的情况下在64位RHEL上安装32位库(glibc)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使32位应用程序在64位RHEL 6.1上运行,并且该计算机无法访问Internet.是否可以在不使用yum的情况下(即仅使用RPM安装)在64位RHEL上安装32位glibc?我从RHEL 6.1 ISO中获取了glibc- * i686.rpm及其依赖项,包括nss-softokn-freebl * i686.rpm,但在不忽略依赖项(rpm --nodeps)的情况下仍然无法安装它.

解决方案

安装DVD:

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

或者,如果您只有ISO,则可以改用它:

mkdir -p /mnt/RHEL
mount -o loop /path/to/RHEL.iso /mnt/RHEL

现在创建一个使用DVD作为存储库的Yum存储库:

/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

您现在应该可以清理yum缓存,并安装32位C库:

yum clean all
yum install glibc.i686

您会看到很多类似的指南,它们告诉您安装并运行 createrepo 命令,但是您不需要这样做. RHEL光盘已经是存储库,它已经具有定义存储库的/repodata/repomd.xml 文件.

但是,如果您将RPM文件放在RHEL光盘上并将其复制到其他地方并开始添加自己的软件包然后,则需要createrepo来为已创建的新存储库构建元数据. /p>

I'm trying to get a 32-bit application to run on 64 bit RHEL 6.1, and the machine does not have access to the internet. Is there any way to install 32 bit glibc on 64 bit RHEL without using yum, i.e. just using RPM installs? I grabbed the glibc-*i686.rpm and many of its dependencies from the RHEL 6.1 ISO including nss-softokn-freebl*i686.rpm, but I still can't get it to install without ignoring dependencies (rpm --nodeps).

解决方案

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 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.

这篇关于在不使用yum的情况下在64位RHEL上安装32位库(glibc)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆