Local sources

The first step: cd /etc/yum.repos.d
Step two: mkdir centos
The third step: move the directory where asked members to the newly created directory
mv * .repo centos
Step four: hanging on the
mount / dev / cdrom / mnt
step five: vim bendiyuan. the repo
[name]
name = NAME1
Enabled. 1 =
gpgcheck = 0
BaseURL = File: /// mnt
written to boot from: Vim /etc/rc.local
Mount / dev / CDROM / mnt
Step five: all yum clean
of six steps: yum repolist

Guess you like

Origin www.cnblogs.com/itzhao/p/11246463.html