After a few xcat of the previous article, today to see how Xcat Installation and upgrade software, we separate the installation of the update release package and the non-distribution package.
First use the Lsdef command to view the OSImage information, such as
Lsdef-t osimage centos6.6-x86_64-install-compute ...
pkgdir=/install/centos6.6/x86_64
pkglist=/opt/xcat/share/xcat/install/centos/compute.centos6.pkglist
otherpkgdir=/install/custom/centos6.6/x86_64/
Otherpkglist=/install/custom/centos6.6/x86_64/mypkgs.pkglist
...
Here are a few of the attributes listed above
* Pkgdir defines the location of the distribution package
* Pkglist defines the list of distribution packages to install
* Otherpkgdir defines the location of the non-distribution package
* Otherpkglist defines the list of non-distribution packages to install
If a property is missing, the description does not specify this property when it is defined.
Install the update release package
1. To install or update a package in a release, simply add the package to be installed or updated to the Pkglist definition file
2. Run the "Updatenode <noderange>-S" command
Install update non-release package
1. First create a directory to put additional packages, such as
Mkdir-p/install/custom/centos6.6/x86_64/
2. Then copy the additional RPM package to this directory, such as using the HELLOWORLD-1.0.0-1.EL6.X86_64.RPM package generated in my previous blog
CP helloworld-1.0.0-1.el6.x86_64.rpm/install/custom/centos6.6/x86_64/
3. Run "Createrepo" in this directory to create the local warehouse
cd/install/custom/centos6.6/x86_64/
Createrepo.
4. Create a Package installation list file, such as "/install/custom/centos6.6/x86_64/mypkgs.pkglist", which reads as follows:
HelloWorld
5. Modify the Otherpkgdir and Otherpkglist properties of OSImage
Chdef-t osimage centos6.6-x86_64-install-compute \
otherpkgdir=/install/custom/centos6.6/x86_64/\
Otherpkglist=/install/custom/centos6.6/x86_64/mypkgs.pkglist
6. Run the Updatenode <noderange>-S command to install the new package
7. If you want to update the package, simply place the new RPM package in the/install/custom/centos6.6/x86_64/directory, and then run the Updatenode <noderange>-S command again.
Reference
http://sourceforge.net/p/xcat/wiki/Using_Updatenode/
Reprint please indicate this address in the form of link
This article address: http://blog.csdn.net/kongxx/article/details/44132613