Xcat Installation and update software

Source: Internet
Author: User

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



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.