Yum based RPM packages can be automatically downloaded from the server specified RPM package and install, can be handled automatically dependencies and install all dependent packages, again without cumbersome download, install.
Yum configuration software installed automatically implement source
1, check the system version
CAT / etc / RedHat-Release
2, enter yum configuration directory and display the files in the directory
cd /etc/yum.repos.d/
LS
3, delete yum. All files (note /etc/yum.repos.d below) repos.d / under
RM -rf *
LS
. 4, use vi my.repo new document, and stores the following content (WQ), this system is not installed command vim
[myrepo] profile name (in square brackets with no spaces)
name = myrepo identify yum repositories name
baseurl = file: /// mnt custom software repositories are
enabled = 1 defined in this depot is valid
gpgcheck = 0 define whether Security check
5, to mount the CD-ROM software libraries
Mount / dev / CDROM / mnt /
. 6, yum detects whether the configuration (the number of detection software repository)
yum repolist
. 7, testing, using a local installation vim command yum
yum install vim -y
appears Complete! represents a successful installation
using the command vim file open my.repo
At this point, you can use vim open my.repo file, using the local yum source vim successfully installed, you can use the next local source yum install more software, here to name a few.