Linux Yum Configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.