Next several Xcat articles, today to see how xcat Install and upgrade software, we sub-install the update release package and non-release package two cases.
First use the Lsdef command to see 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 ...
Notice here a few of the properties listed above
* Pkgdir defines the location of the release package
* Pkglist defines the list of distribution packages to be installed
* Otherpkgdir defines the location of the non-release package
* Otherpkglist defines the list of non-release packages to be installed
If a property is missing, the description does not specify this property at the time of definition.
Install the update release package
1. To install or update a package in a release, simply add the package you want to install or update to the pkglist defined file
2. Run the "Updatenode <noderange>-S" command
Install the 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, for example, 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 a 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 the 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 run the "Updatenode <noderange>-S" command again.
Reference
http://sourceforge.net/p/xcat/wiki/Using_Updatenode/
Please indicate this address in the form of a link.
This address: http://blog.csdn.net/kongxx/article/details/44132613
Xcat Installation and update software