Local Centos yum source arranged to automatically install the software implemented

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 Local Centos yum source arranged to automatically install the software implemented
2, enter yum configuration directory and display the files in the directory
cd /etc/yum.repos.d/
LS
<br/>
3, delete yum. All files (note /etc/yum.repos.d below) repos.d / under
RM -rf *
LS
Local Centos yum source arranged to automatically install the software implemented
. 4, use vi my.repo new document, and stores the following content (WQ), this system is not installed command vim
Local Centos yum source arranged to automatically install the software implemented
[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

<br/>
5, to mount the CD-ROM software libraries
Mount / dev / CDROM / mnt /
Local Centos yum source arranged to automatically install the software implemented
. 6, yum detects whether the configuration (the number of detection software repository)
yum repolist
Local Centos yum source arranged to automatically install the software implemented
. 7, testing, using a local installation vim command yum
yum install vim -y
Local Centos yum source arranged to automatically install the software implemented
appears Complete! represents a successful installation
<br/>
using the command vim file open my.repo
Local Centos yum source arranged to automatically install the software implemented
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.

Guess you like

Origin blog.51cto.com/14015577/2414577