Centosyum configuration !!!
1. Attach the image first.
# Mount/dev/cdrom/media/javasyezhao/
Otherwise
# Mount/dev/sr0/media/baiyezhao/
2. After mounting, copy the image to the system.
# Cp-Rf/media/baiyezhao/media/baiyezhaorepo/
3. After copying, start to operate the files in/yum. repo. d.
Take CentOS5.8 as an Example
# Cd/etc/yum. repo
# Ls
CentOS-Debuginfo.repoCentOS-Media.repoCentOS-Base.repo
CentOS-Vault.repo
######## Copy the file named CentOS-Media.repo.
# CpCentOS-Media.repobaiyezhao.repo
# Ls
CentOS-Debuginfo.repoCentOS-Media.repoCentOS-Base.repo
CentOS-Vault.repobaiyezhao.repo
### Don't think this is the case.
First put CentOS-Debuginfo.repoCentOS-Media.repoCentOS-Base.repo
CentOS-Vault.repo copies these files to other places to avoid conflicts.
My approach is:
# CpCentOS-Debuginfo.repoCentOS-Media.repoCentOS-Base.repo
CentOS-Vault.repo/media/baiyezhao/
############# Go back and set the javasyezhao. repo File
# Vi/etc/yum. repo. d/baiyezhao. repo
[Yezhao]
Name = byz 'syuan
Baseurl = file: // media/javasyezhaorepo/
Gpgcheck = 0
Enable = 1
: Wq
##### Configure the above file ######
Umount/dev/cdrom
This article is from "perfect world !" Blog, please be sure to keep this source http://shyln.blog.51cto.com/6890594/1302932