ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Loaded plugins: product-id, search-disabled-repos, security, subscription-manage

Loaded plugins: product-id, search-disabled-repos, security, subscription-manage

原创 Linux操作系统 作者:ywxj_001 时间:2022-11-07 20:26:50 0 删除 编辑

yum安装报错:

[root@localhost yum.repos.d]# yum update

Loaded plugins: product-id, search-disabled-repos, security, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.


更换yum源,将原有源删除或备份到别的目下下:

#cd /etc/yum.repos.d/

#wget 

#vi Centos-7.repo

 编辑文件,把文件里面的$releasever全部替换为版本号:7最后保存!

#:%s/$releasever/7/g

#:wq


清除原有缓存,重建缓存:

#yum clean all 

#yum makecache


[root@localhost yum.repos.d]# yum clean all

Loaded plugins: product-id, search-disabled-repos, security, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Cleaning repos: base extras updates

Cleaning up Everything

[root@localhost yum.repos.d]# yum makecache

Loaded plugins: product-id, search-disabled-repos, security, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

base                                                                                                                                                                                                                                                   | 3.6 kB     00:00     

base/group_gz                                                                                                                                                                                                                                          | 153 kB     00:00     

base/filelists_db                                                                                                                                                                                                                                      | 7.2 MB     00:00     

base/primary_db                                                                                                                                                                                                                                        | 6.1 MB     00:00     

base/other_db                                                                                                                                                                                                                                          | 2.6 MB     00:00     

extras                                                                                                                                                                                                                                                 | 2.9 kB     00:00     

extras/filelists_db                                                                                                                                                                                                                                    | 276 kB     00:00     

extras/primary_db                                                                                                                                                                                                                                      | 249 kB     00:00     

extras/other_db                                                                                                                                                                                                                                        | 149 kB     00:00     

updates                                                                                                                                                                                                                                                | 2.9 kB     00:00     

updates/filelists_db                                                                                                                                                                                                                                   | 9.6 MB     00:00     

updates/primary_db                                                                                                                                                                                                                                     |  17 MB     00:00     

updates/other_db                                                                                                                                                                                                                                       | 1.2 MB     00:00     

Metadata Cache Created


[root@localhost yum.repos.d]# yum -y install lrzsz

yum安装成功。



来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22996654/viewspace-2922263/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
在零售、金融、互联网行业从事数据库相关工作10余年,有丰富的数据库管理和架构的相关经验。 涉及SQLServer、Oracle、MySQL、PostgreSQL等多种数据库。 目前在一家互联网公司担任DBA经理。 负责整个集团数据库的架构设计和管理工作。

注册时间:2010-01-19

  • 博文量
    247
  • 访问量
    436193