[Home][Back][Next]

1.GPGキーのインポート

# rpm --import http://www.t.ring.gr.jp/archives/linux/fedora/linux/core/3/i386/os/RPM-GPG-KEY-fedora

2.yumのインストール

ダウンロード # wget http://www.t.ring.gr.jp/archives/linux/fedora/linux/core/3/i386/os/Fedora/RPMS/yum-2.1.11-3.noarch.rpm
--13:59:41-- http://www.t.ring.gr.jp/archives/linux/fedora/linux/core/3/i386/os
/Fedora/RPMS/yum-2.1.11-3.noarch.rpm
=> `yum-2.1.11-3.noarch.rpm'
www.t.ring.gr.jp をDNSに問いあわせています... 133.43.224.21
www.t.ring.gr.jp[133.43.224.21]:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 181,378 [application/x-redhat-package-manager]

100%[====================================>] 181,378 540.77K/s

13:59:42 (539.07 KB/s) - `yum-2.1.11-3.noarch.rpm' saved [181,378/181,378]
インストール # rpm -ihv yum-2.1.11-3.noarch.rpm
Preparing... ########################################### [100%]
package yum-2.1.11-3 is already installed
ダウンロード
ファイルの削除
# rm -f yum-2.1.11-3.noarch.rpm

3.yumの設定

設定ファイル
# vi /etc/yum.repos.d/local-base http://ftp.kddilabs.jp/Linux/packages/fedora/core/$releasever/$basearch/os/
ftp://ftp.iij.ad.jp/pub/linux/fedora/core/$releasever/$basearch/os/
# vi /etc/yum.repos.d/local-updates http://ftp.kddilabs.jp/Linux/packages/fedora/core/updates/$releasever/$basearch/
ftp://ftp.iij.ad.jp/pub/linux/fedora/core/updates/$releasever/$basearch/
# vi /etc/yum.repos.d/fedora.repo [base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$ba
search/os/
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
mirrorlist=file:///etc/yum.repos.d/local-base
enabled=1
gpgcheck=1
# vi /etc/yum.repos.d/fedora-updates.repo [updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releas
ever/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releas
ever
mirrorlist=file:///etc/yum.repos.d/local-updates
enabled=1
gpgcheck=1

4.RPMパッケージインストール

# rpm -q httpd
パッケージ httpd はインストールされていません
# yum -y install httpd
Setting up Install Process
Setting up Repo: base
repomd.xml 100% |=========================| 1.1 kB 00:00
Setting up Repo: updates-released
repomd.xml 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 797 kB 00:01
MD Read : ################################################## 2623/2623
base : ################################################## 2622/2622
primary.xml.gz 100% |=========================| 349 kB 00:00
MD Read : ################################################## 888/888
updates-re: ################################################## 888/888
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for httpd to pack into transaction set.
httpd-2.0.52-3.1.i386.rpm 100% |=========================| 58 kB 00:00
---> Package httpd.i386 0:2.0.52-3.1 set to be installed
--> Running transaction check
--> Processing Dependency: httpd-suexec for package: httpd
--> Processing Dependency: libaprutil-0.so.0 for package: httpd
--> Processing Dependency: libapr-0.so.0 for package: httpd
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for httpd-suexec to pack into transaction set.
httpd-suexec-2.0.52-3.1.i 100% |=========================| 18 kB 00:00
---> Package httpd-suexec.i386 0:2.0.52-3.1 set to be installed
---> Downloading header for apr-util to pack into transaction set.
apr-util-0.9.4-17.i386.rp 100% |=========================| 5.1 kB 00:00
---> Package apr-util.i386 0:0.9.4-17 set to be installed
---> Downloading header for apr to pack into transaction set.
apr-0.9.4-24.2.i386.rpm 100% |=========================| 7.0 kB 00:00
---> Package apr.i386 0:0.9.4-24.2 set to be installed
--> Running transaction check

Dependencies Resolved
Transaction Listing:
Install: httpd.i386 0:2.0.52-3.1

Performing the following to resolve dependencies:
Install: apr.i386 0:0.9.4-24.2
Install: apr-util.i386 0:0.9.4-17
Install: httpd-suexec.i386 0:2.0.52-3.1
Downloading Packages:
httpd-2.0.52-3.1.i386.rpm 100% |=========================| 881 kB 00:01
httpd-suexec-2.0.52-3.1.i 100% |=========================| 24 kB 00:00
apr-util-0.9.4-17.i386.rp 100% |=========================| 51 kB 00:00
apr-0.9.4-24.2.i386.rpm 100% |=========================| 87 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: apr 100 % done 1/4
Installing: apr-util 100 % done 2/4
Installing: httpd 100 % done 3/4
Installing: httpd-suexec 100 % done 4/4

Installed: httpd.i386 0:2.0.52-3.1
Dependency Installed: apr.i386 0:0.9.4-24.2 apr-util.i386 0:0.9.4-17 httpd-suexe
c.i386 0:2.0.52-3.1
Complete!
# rpm -q httpd
httpd-2.0.52-3.1
既にインストール済みパッケージをインストールした場合
# yum -y install httpd
Setting up Install Process
Setting up Repo: base
repomd.xml 100% |=========================| 1.1 kB 00:00
Setting up Repo: updates-released
repomd.xml 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
base : ################################################## 2622/2622
updates-re: ################################################## 888/888
Nothing to do

5.RPMパッケージのアンインストール

# rpm -q httpd
httpd-2.0.52-3.1
# yum -y remove httpd
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package httpd.i386 0:2.0.52-3.1 set to be erased
--> Running transaction check
Setting up Repo: base
repomd.xml 100% |=========================| 1.1 kB 00:00
Setting up Repo: updates-released
repomd.xml 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
base : ################################################## 2622/2622
updates-re: ################################################## 888/888
--> Processing Dependency: httpd= 2.0.52-3.1 for package: httpd-suexec
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package httpd-suexec.i386 0:2.0.52-3.1 set to be erased
--> Running transaction check

Dependencies Resolved
Transaction Listing:
Remove: httpd.i386 0:2.0.52-3.1

Performing the following to resolve dependencies:
Remove: httpd-suexec.i386 0:2.0.52-3.1
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing: httpd-suexec 1/2
Erasing: httpd 2/2

Removed: httpd.i386 0:2.0.52-3.1
Dependency Removed: httpd-suexec.i386 0:2.0.52-3.1
Complete!
# rpm -q httpd
パッケージ httpd はインストールされていません

6.RPMパッケージアップデート

# yum check-update


zip.i386 2.3-26.3 updates-released
# rpm -q zip
zip-2.3-24
# yum -y update zip
Setting up Update Process
Setting up Repo: base
repomd.xml 100% |=========================| 1.1 kB 00:00
Setting up Repo: updates-released
repomd.xml 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
base : ################################################## 2622/2622
updates-re: ################################################## 888/888
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for zip to pack into transaction set.
zip-2.3-26.3.i386.rpm 100% |=========================| 5.7 kB 00:00
---> Package zip.i386 0:2.3-26.3 set to be updated
--> Running transaction check

Dependencies Resolved
Transaction Listing:
Update: zip.i386 0:2.3-26.3
Downloading Packages:
zip-2.3-26.3.i386.rpm 100% |=========================| 114 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating: zip 100 % done 1/2
Completing update for zip - 2/2

Updated: zip.i386 0:2.3-26.3
Complete!
# rpm -q zip
zip-2.3-26.3

7.RPMパッケージの一括アップデート

# yum -y update

8.RPMパッケージグループインストール

# yum grouplist
Setting up Group Process
Setting up Repo: base
repomd.xml 100% |=========================| 1.1 kB 00:00
Setting up Repo: updates-released
repomd.xml 100% |=========================| 951 B 00:00
comps.xml 100% |=========================| 591 kB 00:00
Installed Groups:
Administration Tools
Compatibility Arch Support
GNOME Desktop Environment
Graphical Internet
Mail Server
Network Servers
Office/Productivity
Printing Support
Server Configuration Tools
System Tools
X Window System
Available Groups:
Authoring and Publishing
Compatibility Arch Development Support
DNS Name Server
Development Tools
Editors
Engineering and Scientific
FTP Server
GNOME Software Development
Games and Entertainment
Graphics
KDE (K Desktop Environment)
KDE Software Development
Legacy Network Server
Legacy Software Development
MySQL Database
News Server
PostgreSQL Database
Sound and Video
Text-based Internet
Web Server
Windows File Server
X Software Development
XFCE
XFCE Software Development
x86 Compatibility Arch Development Support
Done
# yum -y groupinstall "Web Server"
Setting up Group Process
Setting up Repo: base
repomd.xml 100% |=========================| 1.1 kB 00:00
Setting up Repo: updates-released
repomd.xml 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
base : ################################################## 2622/2622
updates-re: ################################################## 888/888
Passing package list to Install Process
Reading repository metadata in from local files

(省略)

Dependency Updated: e2fsprogs-devel.i386 0:1.36-1.FC3.1 glibc-common.i386 0:2.3.
5-0.fc3.1 glibc-devel.i386 0:2.3.5-0.fc3.1 glibc-headers.i386 0:2.3.5-0.fc3.1 kr
b5-devel.i386 0:1.3.6-5 krb5-libs.i386 0:1.3.6-5 openssh.i386 0:3.9p1-8.0.1 open
ssh-askpass.i386 0:3.9p1-8.0.1 openssh-askpass-gnome.i386 0:3.9p1-8.0.1 udev.i38
6 0:039-10.FC3.7
Complete!

9.RPMパッケージグループアンインストール

# yum -y groupremove "Web Server"
Setting up Group Process
Setting up Repos
base 100% |=========================| 1.1 kB 00:00
updates-released 100% |=========================| 951 B 00:00

(省略)

Removed: crypto-utils.i386 0:2.1-4 distcache.i386 0:1.4.5-6 httpd.i386 0:2.0.52-
3.1 httpd-manual.i386 0:2.0.52-3.1 httpd-suexec.i386 0:2.0.52-3.1 mod_perl.i386
0:1.99_16-3 mod_python.i386 0:3.1.3-5.2 mod_ssl.i386 1:2.0.52-3.1 php.i386 0:4.3
.11-2.4 php-ldap.i386 0:4.3.11-2.4 squid.i386 7:2.5.STABLE9-1.FC3.4 tux.i386 0:3
.2.18-2 webalizer.i386 0:2.01_10-25
Dependency Removed: php-pear.i386 0:4.3.11-2.4
Complete!

10.RPMパッケージグループアップデート

# yum -y groupupdate "Web Server"

11.RPMパッケージ検索

# yum search postfix

12.RPMパッケージ自動アップデート

# /etc/init.d/yum start
夜間 yum 更新の有効化中 [ OK ]
# chkconfig yum on
# chkconfig --list yum

yum 0:off 1:off 2:on 3:on 4:on 5:on 6:off

13.その他のアップデートツールの削除

*Fedoraでは、update2というアップデートツールが導入されていますが、yumをインストールしたので不要なためアンインストールします。

# yum -y remove up2date
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package up2date.i386 0:4.3.47-5 set to be erased
--> Running transaction check
Setting up Repos
base 100% |=========================| 1.1 kB 00:00
updates-released 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
base : ################################################## 2622/2622
updates-re: ################################################## 888/888
--> Processing Dependency: /usr/share/rhn/RHNS-CA-CERT for package: rhn-applet
--> Processing Dependency: up2date = 4.3.47 for package: up2date-gnome
--> Processing Dependency: up2date for package: firstboot
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package firstboot.noarch 0:1.3.33-1 set to be erased
---> Package up2date-gnome.i386 0:4.3.47-5 set to be erased
---> Package rhn-applet.i386 0:2.1.16-1 set to be erased
--> Running transaction check

Dependencies Resolved
Transaction Listing:
Remove: up2date.i386 0:4.3.47-5
Remove: firstboot.noarch 0:1.3.33-1
Remove: rhn-applet.i386 0:2.1.16-1
Remove: up2date-gnome.i386 0:4.3.47-5
Total download size: 0
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
warning: /etc/sysconfig/rhn/up2date-uuid saved as /etc/sysconfig/rhn/up2date-uui
d.rpmsave
Erasing: up2date 1/4
Erasing: firstboot 2/4
Erasing: up2date-gnome 3/4
warning: /etc/sysconfig/rhn/rhn-applet saved as /etc/sysconfig/rhn/rhn-applet.rp
msave
Erasing: rhn-applet 4/4

Removed: up2date.i386 0:4.3.47-5
Dependency Removed: firstboot.noarch 0:1.3.33-1 rhn-applet.i386 0:2.1.16-1 up2da
te-gnome.i386 0:4.3.47-5
Complete!

[Home][Back][Next]

Copyright (C) 2005 ataru