「Linux/reposメモ」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→2016年ぐらいから使えなくなったyum.reposをvault~に変更) |
(→2016年ぐらいから使えなくなったyum.reposをvault~に変更) |
||
行7: | 行7: | ||
# yum clean all | # yum clean all | ||
− | == | + | ==2016年ぐらいからreposで使えなくなったmirrorを削除== |
+ | ===yum.reposをvault~に変更=== | ||
$ sudo sed -i -e "s|mirror\.centos\.org/centos/\$releasever|vault\.centos\.org/6.6|g" /etc/yum.repos.d/CentOS-Base.repo | $ sudo sed -i -e "s|mirror\.centos\.org/centos/\$releasever|vault\.centos\.org/6.6|g" /etc/yum.repos.d/CentOS-Base.repo | ||
$ sudo sed -i -e "s|#baseurl=|baseurl=|g" /etc/yum.repos.d/CentOS-Base.repo | $ sudo sed -i -e "s|#baseurl=|baseurl=|g" /etc/yum.repos.d/CentOS-Base.repo | ||
行16: | 行17: | ||
参考:http://qiita.com/m_kawaguchi/items/1305373affa57a0fd77b | 参考:http://qiita.com/m_kawaguchi/items/1305373affa57a0fd77b | ||
− | /etc/yum.repos.d/rpmforge.repoを更新 | + | ===/etc/yum.repos.d/rpmforge.repoを更新=== |
<pre> | <pre> | ||
### Name: RPMforge RPM Repository for RHEL 6 - dag | ### Name: RPMforge RPM Repository for RHEL 6 - dag |
2017年7月5日 (水) 08:51時点における最新版
目次
エラーResolving Dependencies対応方法
vi /etc/yum.repos.d/epel.repo
- mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch + mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch
# yum clean all
2016年ぐらいからreposで使えなくなったmirrorを削除
yum.reposをvault~に変更
$ sudo sed -i -e "s|mirror\.centos\.org/centos/\$releasever|vault\.centos\.org/6.6|g" /etc/yum.repos.d/CentOS-Base.repo $ sudo sed -i -e "s|#baseurl=|baseurl=|g" /etc/yum.repos.d/CentOS-Base.repo $ sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-Base.repo $ sudo yum clean all
参考:http://qiita.com/m_kawaguchi/items/1305373affa57a0fd77b
/etc/yum.repos.d/rpmforge.repoを更新
### Name: RPMforge RPM Repository for RHEL 6 - dag ### URL: http://rpmforge.net/ [rpmforge] name = RHEL $releasever - RPMforge.net - dag baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 0 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1 priority=5 [rpmforge-extras] name = RHEL $releasever - RPMforge.net - extras baseurl = http://apt.sw.be/redhat/el6/en/$basearch/extras mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge-extras #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge-extras enabled = 0 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1 [rpmforge-testing] name = RHEL $releasever - RPMforge.net - testing baseurl = http://apt.sw.be/redhat/el6/en/$basearch/testing mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge-testing #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge-testing enabled = 0 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1