Local Yum Source Configuration
1. View Disc mount status
[Email protected] ~]# mkdir/test
[Email protected] ~]# mount/dev/cdrom/test/
Mount:blockdevice/dev/sr0 is write-protected, mounting read-only
[[email protected] ~]# DF
Filesystem 1k-blocks used Available use% mounted on
/dev/sda3 19407136 3331396 15089884 19%/
Tmpfs 514352 514280 1%/DEV/SHM
/DEV/SDA1 198337 28139 159958 15%/boot
/dev/sr0 3757116 3757116 0 100%/test
[Email protected] ~]#
2. Modify Yum configuration file
[Email protected] ~]# cd/etc/yum.repos.d/
[[Email protected]]# mv Centos-base.repo Centos-base.repo.bak
[Email protected]]# vim Centos-media.repo
Main configuration:
[C6-media]
name=centos-$releasever-media
baseurl=file:///test/
gpgcheck=0
enabled=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6
Keep Important information, all other delete
3. Test Local Yum installation
[Email protected]]# yum Install gcc
A whole bunch of data pops up and that's it.
This article from the "11465309" blog, reproduced please contact the author!
Native Yum source installation configuration for Beginners Learning Linux