Topic
  • 2 replies
  • Latest Post - ‏2013-05-03T06:45:37Z by sunnyk
Hello_123_adai
Hello_123_adai
2 Posts

Pinned topic How to create and install relocatable packages on AIX?

‏2009-12-23T08:52:23Z |
Hello,
Is there anyone who has successfully created and install an relocatable packages on AIX(5.3 or above)?

I found that the information about how to create and install a relocatable package on AIX is so little and confused.

Could any one kindly provide specific steps to describe the processing of create relocatable packages and install relocatable packages on non-default directory on AIX?

Because I am not very familiar with AIX, it is excellent to give a specific example.
(B.T.W, using backup and bffcreate tool should be excellent)

Thanks a lot in advance!
Updated on 2010-01-22T08:57:53Z at 2010-01-22T08:57:53Z by Hello_123_adai_123
  • Hello_123_adai_123
    Hello_123_adai_123
    1 Post

    Re: How to create and install relocatable packages on AIX?

    ‏2010-01-22T08:57:53Z  
    Let me answer the question myself:(I changed a login id...)

    1: Create relocatable package:newkkk.1.0.0.0.bff
    in one directory:
    #mkdir -p user/new
    #> user/new/kkk

    prepare the template file: newtest.tmplt
    #cat newtest.tmplt
    Package Name: newkkk
    Package VRMF: 1.0.0.0
    Update: N
    Fileset
    Fileset Name: newkkk.rte
    Fileset VRMF: 1.0.0.0
    Fileset Description: new kkk
    USRLIBLPPFiles
    EOUSRLIBLPPFiles
    Bosboot required: N
    License agreement acceptance required: N
    Include license files in this package: N
    Requisites:
    USRFiles
    /usr/new
    /usr/new/kkk
    EOUSRFiles
    ROOT Part: N
    ROOTFiles
    EOROOTFiles
    Relocatable: Y
    Requisites_r:
    EOFileset

    Then issue following command:
    mkinstallp -T newtest.tmplt

    The package was created in the
    ./tmp/newkkk.1.0.0.0.bff

    2: Install relocatable package:
    #cd ./tmp
    /usr/sbin/installp_r -R /newplace -d newkkk.1.0.0.0.bff newkkk

    That is OK.

    Thanks!
  • sunnyk
    sunnyk
    1 Post

    Re: How to create and install relocatable packages on AIX?

    ‏2013-05-03T06:45:37Z  
    Let me answer the question myself:(I changed a login id...)

    1: Create relocatable package:newkkk.1.0.0.0.bff
    in one directory:
    #mkdir -p user/new
    #> user/new/kkk

    prepare the template file: newtest.tmplt
    #cat newtest.tmplt
    Package Name: newkkk
    Package VRMF: 1.0.0.0
    Update: N
    Fileset
    Fileset Name: newkkk.rte
    Fileset VRMF: 1.0.0.0
    Fileset Description: new kkk
    USRLIBLPPFiles
    EOUSRLIBLPPFiles
    Bosboot required: N
    License agreement acceptance required: N
    Include license files in this package: N
    Requisites:
    USRFiles
    /usr/new
    /usr/new/kkk
    EOUSRFiles
    ROOT Part: N
    ROOTFiles
    EOROOTFiles
    Relocatable: Y
    Requisites_r:
    EOFileset

    Then issue following command:
    mkinstallp -T newtest.tmplt

    The package was created in the
    ./tmp/newkkk.1.0.0.0.bff

    2: Install relocatable package:
    #cd ./tmp
    /usr/sbin/installp_r -R /newplace -d newkkk.1.0.0.0.bff newkkk

    That is OK.

    Thanks!

    Hi,

    I am using lppbuild to create bff package, which doesn't use template file. lppbuild uses control file and i have checked the tags for this file,

    But couldn't find RELOCTABLE tag.

    how can we create relocatable package using lppbuild ?

    Thanks,