系统:CentOS 8.4 配置Yum后,如图:

CentOS 8.4 yum源配置_yum源

[root@localhost ~]# yum makecache

报错Errors during downloading metadatafor repository 'appstream' ,如图:​

CentOS 8.4 yum源配置_centos_02

此原因为路径不对,识别不到.所以必须写到/mnt/AppStream/.

修改Yum源配置,如图:​

CentOS 8.4 yum源配置_yum源_03

再次yum makecache

[root@localhost ~]# yummakecache

CentOS 8.4 yum源配置_yum源_04

测试结果OK,但当[root@localhost~]# yum install libnsl.so.1  执行结果失败

CentOS 8.4 yum源配置_yum源_05

原因为CentOS8.4Yum源有两个,BaseOSAppStream,而此前只配置了AppStream.

CentOS 8.4 yum源配置_centos_06

修改Yum源配置,执行OK.

CentOS 8.4 yum源配置_yum源_07

再次[root@localhost ~]# yum installlibnsl.so.1  执行OK.

CentOS 8.4 yum源配置_yum源_08