7.リポジトリの追加

サードパーティなどが提供しているリポジトリの追加方法。

※追加リポジトリ:「epel」「remi」
※32bit版

—————————————-
★リポジトリ追加
—————————————-

——————–
■epelの場合
——————–

[root@svr ~]# rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-5

[root@svr ~]# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm を取得中
警告: /var/tmp/rpm-tmp.RikE6N: ヘッダ V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
準備中… ########################################### [100%]
1:epel-release ########################################### [100%]

[root@svr ~]# ls /etc/yum.repos.d/epel*
/etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel.repo
※レポジトリの設定追加の確認

——————–
■remiの場合
——————–

[root@svr ~]# rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi

[root@svr ~]# rpm -ivh http://rpms.famillecollet.com/enterprise/6/remi/i386/remi-release-6.5-1.el6.remi.noarch.rpm
http://rpms.famillecollet.com/enterprise/6/remi/i386/remi-release-6.5-1.el6.remi.noarch.rpm を取得中
準備中… ########################################### [100%]
1:remi-release ########################################### [100%]

[root@svr ~]# ls /etc/yum.repos.d/remi*
/etc/yum.repos.d/remi.repo
※レポジトリの設定追加の確認

[root@svr ~]# vi /etc/yum.repos.d/remi.repo
—–
[remi]
name=Les RPM de remi pour Enterprise Linux $releasever – $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority

[remi-test]
name=Les RPM de remi en test pour Enterprise Linux $releasever – $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/test/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/test/mirror
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
—–
※[remi]を有効にする

—————————————-
★yumを実行して確認
—————————————-

[root@svr ~]# yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 4.0 kB 00:00
* base: rsync.atworks.co.jp
* epel: ftp.jaist.ac.jp
* extras: rsync.atworks.co.jp
* remi: remi-mirror.dedipower.com
* updates: ftp.nara.wide.ad.jp
epel | 4.0 kB 00:00
epel/primary_db | 3.8 MB 00:01
remi | 2.9 kB 00:00
remi/primary_db | 264 kB 00:01

Setting up Update Process
Resolving Dependencies

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)