解决linux redhat版本下 yum命令不可使用问题。
2015-03-11 17:07
579 查看
[root@ashe back_data]# yum install perl
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Nothing to do
问题如上,解决办法如下,
1、进入/etc/yum.repos.d/目录。
在命令行输入:wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
2、ls 一下,会看到一个文件名为CentOS-Base.repo的文件。
3、将原来的文件rhel-debuginfo.repo改名为rhel-debuginfo.repo.bak(备份一下原来的)
4、将CentOS-Base.repo改名为rhel-debuginfo.repo(把下载的文件改为原来的名字)
这时再运行yum install perl
OK。
[root@ashe sw]# yum install perl
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
addons | 1.9 kB 00:00
addons/primary_db | 1.1 kB 00:00
base | 1.1 kB 00:00
base/primary | 1.3 MB 00:15
base 3667/3667
extras | 2.1 kB 00:00
extras/primary_db | 173 kB 00:00
update | 1.9 kB 00:00
update/primary_db | 302 kB
ok。
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Nothing to do
问题如上,解决办法如下,
1、进入/etc/yum.repos.d/目录。
在命令行输入:wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
2、ls 一下,会看到一个文件名为CentOS-Base.repo的文件。
3、将原来的文件rhel-debuginfo.repo改名为rhel-debuginfo.repo.bak(备份一下原来的)
4、将CentOS-Base.repo改名为rhel-debuginfo.repo(把下载的文件改为原来的名字)
这时再运行yum install perl
OK。
[root@ashe sw]# yum install perl
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
addons | 1.9 kB 00:00
addons/primary_db | 1.1 kB 00:00
base | 1.1 kB 00:00
base/primary | 1.3 MB 00:15
base 3667/3667
extras | 2.1 kB 00:00
extras/primary_db | 173 kB 00:00
update | 1.9 kB 00:00
update/primary_db | 302 kB
ok。
相关文章推荐
- 关于安装linux redhat后无法使用yum命令安装gcc-c++问题的解决过程
- 解决Redhat Linux AS使用yum时出现This system is not registered with RHN的问题(改用CentOS的yum)
- [Linux] 解决RedHat 中 ifconfig 命令不能使用的问题
- 解决RedHat中ifconfig命令不能使用的问题
- LInux下可以使用命令自动与网络的NTP服务器同步时间 CSDN验证码验证失败问题解决
- 解决RedHat中ifconfig命令不能使用的问题
- 解决Linux下ifconfig、shutdown等Shell命令不能使用的问题
- LInux下可以使用命令自动与网络的NTP服务器同步时间 CSDN验证码验证失败问题解决
- 解决RedHat中ifconfig命令不能使用的问题
- 解决Redhat默认无法使用sbin目录下命令的问题
- VirtualBox虚拟机安装Linux redhat 5.4 64位版本的过程中出现的问题及解决方法
- redhat enterprise linux 6.4系统下yum无法使用的解决办法
- 64位Linux使用yum安装两个相同软件不同版本包的解决方法
- Linux学习9_sh命令使用问题解决
- linux使用yum命令产生的进程锁问题
- RedHat 解决 ifconfig命令不能使用的问题
- 解决RedHat中ifconfig命令不能使用的问题[zz]
- 解决RedHat中ifconfig命令不能使用的问题
- 解决java使用Runtime.exec执行linux复杂命令不成功问题
- 解决RedHat中ifconfig命令不能使用的问题