Subscribe:

2010/10/09

RPMリポジトリインストール

RPMFORGE KEYのインストール
# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
RPMリポジトリのダウンロード
# wget 長いのでリンク
RPMリポジトリのインストール
# rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
リポジトリの優先度管理をインストール
# yum -y install yum-priorities


Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.nara.wide.ad.jp
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package yum-priorities.noarch 0:1.1.16-14.el5.centos.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================
Package                Arch           Version                         Repository    Size
==========================================================================================
Installing:
yum-priorities         noarch         1.1.16-14.el5.centos.1          base          14 k
Transaction Summary
==========================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)
Total download size: 14 k
Downloading Packages:
yum-priorities-1.1.16-14.el5.centos.1.noarch.rpm                   |  14 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : yum-priorities                                                     1/1
Installed:
yum-priorities.noarch 0:1.1.16-14.el5.centos.1
Complete!
priority=1を追加 # vi /etc/yum.repos.d/CentOS-Base.repo [text toolbar="false" font_size="110%"] # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ priority=1 #released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 priority=1 #packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 priority=1 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 priority=1 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 priority=1 #contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 priority=1 [/text] PHPをインストールする時にインストールしたレポジトリも修正(enabled=0→1) # vi /etc/yum.repos.d/utterramblings.repo [text toolbar="false" font_size="110%"] [utterramblings] name=Jason・s Utter Ramblings Repo baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/ enabled=0 gpgcheck=1 gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka [/text] 優先度確認 # yum install perl-Crypt-DSA

Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: ftp.nara.wide.ad.jp
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* rpmforge: fr2.rpmfind.net
* updates: ftp.nara.wide.ad.jp
511 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-Crypt-DSA.noarch 0:1.16-1.el5.rf set to be updated
--> Processing Dependency: perl(File::Which) >= 0.05 for package: perl-Crypt-DSA
--> Processing Dependency: perl(Data::Buffer) >= 0.01 for package: perl-Crypt-DSA
--> Processing Dependency: perl(Digest::SHA1) for package: perl-Crypt-DSA
--> Running transaction check
---> Package perl-Data-Buffer.noarch 0:0.04-1.2.el5.rf set to be updated
---> Package perl-Digest-SHA1.x86_64 0:2.11-1.2.1 set to be updated
---> Package perl-File-Which.noarch 0:1.07-1.el5.rf set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================
Package                  Arch           Version                   Repository        Size
==========================================================================================
Installing:
perl-Crypt-DSA           noarch         1.16-1.el5.rf             rpmforge          36 k
Installing for dependencies:
perl-Data-Buffer         noarch         0.04-1.2.el5.rf           rpmforge          13 k
perl-Digest-SHA1         x86_64         2.11-1.2.1                base              49 k
perl-File-Which          noarch         1.07-1.el5.rf             rpmforge          17 k
Transaction Summary
==========================================================================================
Install       4 Package(s)
Upgrade       0 Package(s)
Total download size: 115 k
Is this ok [y/N]: y
Downloading Packages:
(1/4): perl-Data-Buffer-0.04-1.2.el5.rf.noarch.rpm                 |  13 kB     00:00
(2/4): perl-File-Which-1.07-1.el5.rf.noarch.rpm                    |  17 kB     00:00
(3/4): perl-Crypt-DSA-1.16-1.el5.rf.noarch.rpm                     |  36 kB     00:00
(4/4): perl-Digest-SHA1-2.11-1.2.1.x86_64.rpm                      |  49 kB     00:00
------------------------------------------------------------------------------------------
Total                                                      43 kB/s | 115 kB     00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : perl-Digest-SHA1                                                   1/4
Installing     : perl-File-Which                                                    2/4
Installing     : perl-Data-Buffer                                                   3/4
Installing     : perl-Crypt-DSA                                                     4/4
Installed:
perl-Crypt-DSA.noarch 0:1.16-1.el5.rf
Dependency Installed:
perl-Data-Buffer.noarch 0:0.04-1.2.el5.rf      perl-Digest-SHA1.x86_64 0:2.11-1.2.1
perl-File-Which.noarch 0:1.07-1.el5.rf
Complete!
perl-Digest-SHA1のみbaseリポジトリが選択されているので成功・・・かな?

0 件のコメント: