Install centos7.1 through VMware and first mount the IOS file # mountdev/cdrommnt/cdromdev/cdrom is the iso file directory selected when centos is installed: after creating the mnt/cdrom Directory, run the mountdev/cdrommnt/cdrom command to mount the directory. 2. go to the/etc/yum. repos. d Directory & nbs
Install centos7through VMware.
1. Mount IOS files first
# Mount dev/cdrom mnt/cdromdev/cdrom is the iso file directory selected when centos is installed:
After the mnt/cdrom directory is created, run the mount dev/cdrom mnt/cdrom command to mount it.
2. go to the/etc/yum. repos. d Directory.
# Cd/etc/yum. repos. d
The directory contains the following four files:
The CentOS-Base.repo.bak file is the file I named from, the network yum configured in the base; will be loaded first, won't load the network yum after the name is changed.
3. edit CentOS-Sources.repo files
[Base-source] name = CentOS-$ releasever-Base Sourcesbaseurl = file: // mnt/cdromgpgcheck = 1 enabled = 1 gpgkey = file: /// mnt/cdrom/RPM-GPG-KEY-CentOS-7 # modify baseurl, gpgkey pointing to the Mount Directory, set enabled = 1 indicates enabled.
Now the configuration is complete.