RHEL8.x yum 配置
- 创建/mnt/cdrom/ 文件夹
- 挂在ISO 文件在mnt/cdrom/下
mount -o ro,loop xxxxx.iso /mnt/cdrom/ - 编辑yum 配置文件,如下
[root@cfg yum.repos.d]# cat rhel8-local.repo
[localREPO]
name=localhost8
baseurl=file:///mnt/cdrom/BaseOS
enable=1
gpgcheck=0
[localREPO_APP]
name=localhost8_app
baseurl=file:///mnt/cdrom/AppStream
enable=1
gpgcheck=0
[root@cfg yum.repos.d]#
[root@cfg ~]# yum install /lib/ld-linux.so.2 -y
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package glibc.i686 0:2.17-196.el7 will be installed
--> Processing Dependency: libfreebl3.so for package: glibc-2.17-196.el7.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.17-196.el7.i686
--> Running transaction check
---> Package nss-softokn-freebl.i686 0:3.28.3-6.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
glibc i686 2.17-196.el7 local-rhels7.4-x86_64--install-rhels7.4-x86_64 4.2 M
Installing for dependencies:
nss-softokn-freebl i686 3.28.3-6.el7 local-rhels7.4-x86_64--install-rhels7.4-x86_64 198 k
Transaction Summary
========================================================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 4.4 M
Installed size: 15 M
Downloading packages:
(1/2): nss-softokn-freebl-3.28.3-6.el7.i686.rpm | 198 kB 00:00:00
(2/2): glibc-2.17-196.el7.i686.rpm | 4.2 MB 00:00:00
------------------------------------------------------------------------------------------------------------------------
Total 14 MB/s | 4.4 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : nss-softokn-freebl-3.28.3-6.el7.i686 1/2
Installing : glibc-2.17-196.el7.i686 2/2
Verifying : glibc-2.17-196.el7.i686 1/2
Verifying : nss-softokn-freebl-3.28.3-6.el7.i686 2/2
Installed:
glibc.i686 0:2.17-196.el7
Dependency Installed:
nss-softokn-freebl.i686 0:3.28.3-6.el7
Complete!