CentOS6.3でローカルyumの使い方

#mkdir /mnt/cdrom
#mount /dev/cdrom /mnt/cdrom
#mkdir /data/yum
#cp -rf /mnt/cdrom /data/
#mv /etc/yum.repos.d/CentOS-Base.repo CentOS-Base.repo.bak
#mv /etc/yum.repos.d/CentOS-Debuginfo.repo CentOS-Debuginfo.repo.bak
#cp /etc/yum.repos.d/CentOS-Media.repo CentOS-Media.repo.bak
#mv /etc/yum.repos.d/CentOS-Media.repo Local-Yum.repo

# vi /etc/yum.repos.d/Local-Yum.repo

修正:
baseurl=file:///data/cdrom/

# yum clear all
# yum list | grep c

Linux

Posted by arkgame