RHEL8.x yum 配置

本文介绍了如何在RHEL8.x系统中配置yum,包括创建/mnt/cdrom/目录,挂载ISO文件到该目录以及编辑yum配置文件的详细步骤。
摘要由CSDN通过智能技术生成

RHEL8.x yum 配置

  1. 创建/mnt/cdrom/ 文件夹
  2. 挂在ISO 文件在mnt/cdrom/下
    mount -o ro,loop xxxxx.iso /mnt/cdrom/
  3. 编辑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!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值