# cat /etc/redhat-release
# mount -t iso9660 -o ro /dev/cdrom /media/cdrom
CentOS release 5.4 (Final)
# uname -r
2.6.18-164.el5
# egrep -v "^#" /etc/yum.repos.d/CentOS-Media.repo
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
/media/cdrom or /media/cdrecorder をみる。
# mkdir /media/cdrom
# mount -t iso9660 -o ro /dev/cdrom /media/cdrom
メディアと外部をみる場合。
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c5-media [command]
#
メディアのみ。
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c5-media [command]
]# yum --disablerepo=\* --enablerepo=c5-media list | head -10
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* c5-media:
Installed Packages
Deployment_Guide-ja-JP.noarch 5.2-11.el5.centos installed
GConf2.i386 2.14.0-9.el5 installed
GConf2-devel.i386 2.14.0-9.el5 installed
MAKEDEV.i386 3.23-1.2 installed
依存関係もチェックして必要なパッケージをインストールしてくれる。
# yum --disablerepo=\* --enablerepo=c5-media install -y php-cli.i386
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* c5-media:
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-cli.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-cli
--> Running transaction check
---> Package php-common.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Finished Dependency Resolution
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.