Self-built Yum source and group installation

Source: Internet
Author: User

Recently in the study of a set of automated operational direction of the framework, in the thought of remote installation packages, it is more convenient to find Yum support. The main idea is to package the code or program written by the programmer into RPM, then submit it to the self-built Yum source, and implement the local Yum source implementation steps by installing it as a group:

1. Build local Yum source to cover base and Epel source, this source is not to be mentioned.

2. Build local proprietary application Yum source.

Create the RPM directory Mkdir-p/psoft/6/x86_64/packages/, and then copy all the RPM packages involved to that directory.

If you simply implement the Yum install installation, execute Createrepo-v/psoft/6/x86_64/directly, and then write a repo file that can be used on the opposite server.

Repo file: Name is Comp.xml

[Psoft]
Name=centos-psoft
baseurl=http://mirrors.pppppp.com/psoft/$releasever/$basearch
Enabled=1
Gpgcheck=0

3. Implement Yum Groupinstall to install all packages for an application in its entirety.

You need to create an XML file in the x86_64 directory, in the following format:

<comps>
<group>
<id>psoft</id>
<name>psoft tools</name>
<name xml:lang= "ZH_CN" > Chinese name </name>
<description>tvmstream Tools Packges</description>
<description xml:lang= "ZH_CN" > Chinese description </description>
<default>false</default>
<uservisible>true</uservisible>
<packagelist>
<packagereq type= "Default" >nginx</packagereq>
<packagereq type= "Default" >php</packagereq>
<packagereq type= "Default" >php-cli</packagereq>
<packagereq type= "Default" >php-common</packagereq>
<packagereq type= "Default" >php-fpm</packagereq>
<packagereq type= "Default" >php-pdo</packagereq>
<packagereq type= "Default" >php-xml</packagereq>
<packagereq type= "Default" >psoft</packagereq>
<packagereq type= "Default" >mysoft</packagereq>
</packagelist>
</group>
</comps>

Then execute:

Createrepo-g comp.xml/psoft/6/x86_64

Generates repodate information.

Execute Yum groupinstall ' psoft tools ' on the opposite server.

Self-built Yum source and group installation

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.