Xcat Installation and update software

Source: Internet
Author: User

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

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.