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