Yum Installation:
[email protected] ~]# cd/etc/yum.repos.d///yum the default storage location for the warehouse package configuration file, inside the file we can delete the re-create . Repo suffix of the file
[email protected] yum.repos.d]# vim Rhel6.repo// Create a new one, the name can be arbitrary, but the suffix name must be . Repo files, add our package locations inside
[Server]// Warehouse ID , you can customize it. General software packages, such as MYSQL,HTTPD, development tools, system management tools, etc.
name=server // warehouse name, can be customized
baseurl=ftp://172.16.1.253/rhel6.4/server // server package location, general add server The position will be able to meet our daily work, the other warehouse files can not be added, I have all the warehouse files are added here. // I'm adding a Span style= "font-family: ' Times New Roman ';" >ftp server above yum warehouse, local disc add need to find the disc mount path, such as baseurl=file:///media/"OL6.4 x86_64 Disc 1 20130225"/server
enabled=1// whether the warehouse is enabled, 1 Open
gpgcheck=0// whether to check the signature of the software package, 0 Do not open
[LoadBalancer] //load balancing, e.g. Lvs,pirihan
Name=loadbalancer
baseurl=ftp://172.16.1.253/rhel6.4/loadbalancer
Enabled=1
Gpgcheck=0
[Highavailability] //High Availability
Name=highavailability
baseurl=ftp://172.16.1.253/rhel6.4/highavailability
Enabled=1
Gpgcheck=0
[Resilientstorage] //Storage
Name=resilientstorage
baseurl=ftp://172.16.1.253/rhel6.4/resilientstorage
Enabled=1
Gpgcheck=0
[Scalablefilesystem] //System expansion
Name=scalablefilesystem
baseurl=ftp://172.16.1.253/rhel6.4/scalablefilesystem
Enabled=1
Gpgcheck=0
~
~
~
After the configuration is complete, save exit.
[email protected] yum.repos.d]# yum Repolistall// See if the configuration is good Yum
Loaded Plugins:product-id,refresh-packagekit, Security, Subscription-manager
This system isn't registered to Red hatsubscription Management. You can use the Subscription-manager to register.
repo id repo name status
highavailability highavailability enabled:
loadbalancer loadbalancer enabled: 4
resilientstorage ResilientStorage enabled:
scalablefilesystem ScalableFileSystem enabled: 7
Server server enabled:3,64 8
repolist:3,777
This article is from the "One Meter Sunshine" blog, please be sure to keep this source http://sunshine3.blog.51cto.com/3988340/1694737
Linux Yum Configuration