centos6安裝了epel 7的處理辦法

`#系統是Centos 6.6, 這裏錯誤了安裝 epel [root@ip-127-0-0-1 softs] rpm -ivh http://mirrors.ustc.edu.cn/epel/7/x86_64/e/epel-release-7-5.noarch.rpmjava

#使用 yum search munin 時提示了錯誤信息 [root@ip-127-0-0-1 softs] yum search munin Loaded plugins: amazon-id, rhui-lb, security Error: xz compression not availablenode

開始解決Error, remove 錯誤的epel

[root@ip-127-0-0-1 softs] yum remove epel-release Loaded plugins: amazon-id, rhui-lb, security Setting up Remove Process Resolving Dependencies .....nginx

中間提示時 輸入 y (yes)

Installed size: 22 k Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Erasing : epel-release-7-5.noarch 1/1 Verifying : epel-release-7-5.noarch 1/1 Removed: epel-release.noarch 0:7-5
Complete!apache

清理epel 緩存

[root@ip-127-0-0-1 softs]# rm -rf /var/cache/yum/x86_64/6Server/epel/緩存

從新安裝正確的epel

[root@ip-127-0-0-1 softs]# rpm -ivh epel-release-6-8.noarch.rpmruby

再次確認,成功完成

[root@ip-127-0-0-1 softs]# yum search munin Loaded plugins: amazon-id, rhui-lb, security epel/metalink | 13 kB 00:00
epel | 4.4 kB 00:00
epel/primary_db | 6.7 MB 00:00
epel/pkgtags | 1.6 MB 00:00
========================= N/S Matched: munin =============== PyMunin.noarch : Python Module for developing Munin Multigraph Monitoring Plugins munin-java-plugins.noarch : java-plugins for munin munin-ruby-plugins.noarch : ruby-plugins for munin unbound-munin.noarch : Plugin for the munin / munin-node monitoring package munin.noarch : Network-wide graphing framework (grapher/gatherer) munin-async.noarch : Network-wide graphing framework (asynchronous client tools) munin-cgi.noarch : Network-wide graphing framework (cgi files for apache) munin-common.noarch : Network-wide graphing framework (common files) munin-netip-plugins.noarch : Network-wide graphing framework (dhcpd3 and ntp plugins) munin-nginx.noarch : Network-wide graphing framework (cgi files for nginx) munin-node.noarch : Network-wide graphing framework (node)async

Name and summary matches only, use "search all" for everything.`ide

相關文章
相關標籤/搜索