Configure local YUM source for CentOS and YUM source for CentOS
CentOS local YUM source configuration-CentOS-6.4 as an Example
1. Place the image CD in Centos or find the image file and mount it to the system.
Mount/dev/cdrom/mnt/cdrom #/mnt/cdrom directory must be created first
2. cd/etc/yum. repos. d/# enter the/etc/yum. repos. d/directory.
3. mkdir bak
And move the CentOS-Base.repo and CentOS-Debuginfo.repo to the bak directory so that local YUM source installation can bypass the network
4. Edit the CentOS-Media.repo configuration file
# CentOS-Media.repo # This repo can be used with mounted DVD media, verify the mount point for # CentOS-6. you can use this repo and yum to install items directly off the # dvd iso that we release. # To use this repo, put in your DVD and use it with the other repos too: # yum -- enablerepo = c6-media [command] # or for ONLY the media repo, do this: # yum -- disablerepo = \ * -- enablerepo = c6-media [command] [c6-media] name = CentOS-$ releasever-Media # custom name baseurl = file: /// mnt/cdrom # Local CD Mount path gpgcheck = 0 # Check GPG-KEY, 0 is not checked, 1 is checked enabled = 1 # enable YUM source, 0 is not enabled, 1 is enabled
4. Run the command after the configuration is complete.
Yum clean all # Clear yum source Cache
Yum update # update yum Source
After the update, you can use the local YUM source to install the corresponding service.
5. test:
Yum install gcc-c ++ # Check whether the command is successful
How to configure the yum source from the local CentOS CD
You do not need to configure it. Install it first and set yum in the system.
How should I configure centos 60 local yum source?
I need this, too. Wait for the answer.