CentOS VPS tutorial (3) YUM source configuration

Source: Internet
Author: User
Tags centos vps vps

CentOS VPS tutorial (3) YUM source configuration on the server may require installation of many software. To build a blog, you usually need a web server that supports PHP, such as Apache and Nginx, and a relational database such as MySQL. Installing software for these classes may take a long time, including many configuration, initialization, and dependency problems. You may also need to compile some software by yourself. We can use the YUM package management software that comes with CentOS to manage the installed software, making it much easier to install, update, and delete the software. (Each Linux release usually has its own package management software, such as apt of Ubuntu) YUM's software management relies on the YUM source set in the configuration file, these YUM sources are usually managed by some companies and organizations. We can use these sources to find the software we need to install. To add a YUM source, CentOS VPS usually comes with some default YUM sources. You can view/etc/yum. repos. d/directory, 1 $ ls/etc/yum. repos. d/to view the default sources. Each *. repo file indicates a YUM source, which describes the source name, address, whether to start, check, and other information. You can add a source file *. repo under this directory. Here is my source: centOS-Base.repo 01 # CentOS-Base.repo02 #03 # The mirror system uses the connecting IP address of the client and the04 # update status of each mirror to pick mirrors that are updated to and05 # geographically close to the client. you shoshould use this for CentOS updates06 # unless you are manually picking other mirrors.07 #08 # If the specified list = does not work for you, as a fall back you can try th E09 # remarked out baseurl = line instead.10 #11 #12 13 [base] 14 name = CentOS-$ releasever-base1520.list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = os16 # baseurl = Route 21 # released updates22 [updates] 23 name = CentOS-$ releasever-Updates24mirrorlist = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = updates25 # baseurl = Limit 30 # additional packages that may be useful31 [extras] 32 name = CentOS-$ releasever-Extras33mirrorlist = http://mirrorlist.centos.org/? Release = $ releasever & arch = $ basearch & repo = signature # baseurl = signature 39 # additional packages that extend functionality of existing packages40 [centosplus] 41 name = CentOS-$ releasever-Signature = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = centosplus43 # baseurl = 48 # contrib-packages by Centos Users49 [contrib] 50 name = CentOS-$ releasever-contrib51nation list = http://mirrorlist.centos.org/? Release = $ releasever & arch = $ basearch & repo = contrib52 # baseurl = (IPv4 can also be used). You can add the source of the open source image site of tsinghua University, which is fast and tsinghua. repo 01 [base] 02 name = CentOS-6-Base03repo = os04baseurl = 12708 [u Pdate] 09 name = CentOS-6-Updates10baseurl = route 14 [extras] 15 name = CentOS-6-Extras16baseurl = route 20 [centosplu S] 21 name = CentOS-6-Plus22baseurl = signature 27 [contrib] 28 name = CentOS-6-Contrib29baseurl = Signature After the ntOS-6 has added YUM, update yum, 1 # yum check-update to complete the addition of the YUM source. To install a software package, for example, install git, run the following command: 1 # yum install git Update Software Package check for updates first, and update the software package according to the returned requirements. 1 # yum check-update if the following update information is returned, 1 <span> java-1.7.0-openjdk.i386. 7.0.25-2.3.10.4.el5 _ 9 updates </span> indicates that openjdk1.7 has been updated, run the following command to update, 1 # yum update java-1.7.0-openjdk.i386 to delete a software package, for example, delete git, run, 1 # yum delete git

Related Article

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.