您的位置:首页 > 其它

yum问题收集

2016-04-05 13:09 239 查看

前言

记录平时见到的一些技巧,以备不时之需

yum源问题

添加epel源,参考 http://fedoraproject.org/wiki/EPEL 选取对应版本的‘epel-release’,添加源后即可查询到,以EL6为例:
yum install http://mirrors.opencas.cn/epel/6/i386/epel-release-6-8.noarch.rpm
yum本地源
mkdir -p /mnt/centos
mount -o loop CentOS-6.5-x86_64-bin-DVD1.iso /mnt/centos/

cat /etc/yum.repos.d/CentOS-Media.repo

# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c6-media [command]
#
# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c6-media [command]

[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
yum 问题记录
[root@core /]# yum list

Loaded plugins: fastestmirror

Determining fastest mirrors

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

--->解决方法
yum upgrade ca-certificates --disablerepo=epel
yum 系列问题
1. yum  install salt-minion

....
file /usr/lib64/python2.6/zipfile.pyo from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file from package python-2.6.6-36.el6.x86_64

Error Summary

--->缩小范围
2. yum install python-libs  问题一样

最后得出应先升级python

yum update python

然后在 yum  install salt-minion
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  yum