Packaging applications

Ask a Question related to AIX, Design and Development.

  1. #1

    Default Packaging applications

    Reading the red book 'Developing and Porting C and C++ Applications on AIX',
    it seems that mkinstallp is only provided from AIX 5.2. Is there any doc
    about packaging from earlier versions ?

    Thanks

    Christian


    Christian Guest

  2. Similar Questions and Discussions

    1. Running Java applications with CF applications
      Is anyone out there running both Java and CF apps on their CFMX 7 J2EE Enterprise Server? I was going to migrate the Java apps to CF7 to avoid a...
    2. packaging .dll's
      Good afternoon I used 8.0 and just upgraded to MX. I am still confused about putting the .dll's in the xtras folder. We have done about 8...
    3. web applications versus. web portal applications
      I came across a new term "web portal applications." Anyone can tell me what's the differences between web portal applications versus traditional...
    4. #24809 [WFx]: Packaging PHP Applications for Easy Distribution & Configuration
      ID: 24809 User updated by: lee at semel dot net -Summary: Packaging PHP Applications for Easy Distribution Reported By: ...
    5. #24809 [NEW]: Packaging PHP Applications for Easy Distribution
      From: lee at semel dot net Operating system: PHP version: Irrelevant PHP Bug Type: Feature/Change Request Bug description: ...
  3. #2

    Default Re: Packaging applications


    "Christian" <cgregoir99@yahoo.com> schrieb im Newsbeitrag
    news:bjq532$2j0$1@reader1.imaginet.fr...
    > Reading the red book 'Developing and Porting C and C++ Applications on
    AIX',
    > it seems that mkinstallp is only provided from AIX 5.2. Is there any doc
    > about packaging from earlier versions ?
    >
    > Thanks
    >
    > Christian
    >
    >
    Hallo Christian,

    I have used mkinstallp with both 5.1 and 5.2 successfully. However, the
    first problem with mkinstallp is, that IBM included a little bit of
    information about it in the AIX documentation but 'forgot' to put the
    software on the AIX Media. Allegedly IBM intended to add it to the operating
    system with some maintenance level. However, in fact it was neither added in
    any ML for 5.1 (1-4) nor in the ML for 5.2 (1) yet. Hence it makes no
    difference whether you have got the 5.2 media or not <grn>. So firstly you
    need to ask IBM support to send it to you. Ask for bos.adt.insttools. (In
    June I got version bos.adt.insttools.5.2.0.0.bff)
    mkinstallp uses a shell and a perl script. Thus I would guess that it should
    work with 4.3.3 also (but did not try this myself yet).
    The documentation for packaging (and the packaging format itself) did not
    change since at least AIX 4.3.3. You might find it here:
    [url]http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/genprogc/pkg[/url]
    ing_sw4_install.htm This document contains almost all the information you
    need to create installp packages in backup file format bff.

    Having said that I must not forget to warn you: the mkinstallp scripts are a
    bit faulty and somebody at IBM is still working on them. (Maybe that was the
    reason to omit the tools from the media). So you need to know what an
    installp package looks like to make the scripts work. Otherwise the script
    generates empty packages and/or overwrite system directories. However, when
    you know what you are doing (i.e. when you know the bff) and correct these
    two little probs, IMHO mkinstallp is much easier to use than the mklpp
    packaging tool from Bull.

    Regards,
    Andreas


    Andreas Schulze Guest

  4. #3

    Default Re: Packaging applications

    "Andreas Schulze" <b79xan@gmx.de> wrote in message
    news:bjrpn3$jom2@news-1.bank.dresdner.net...
    >
    > "Christian" <cgregoir99@yahoo.com> schrieb im Newsbeitrag
    > news:bjq532$2j0$1@reader1.imaginet.fr...
    > > Reading the red book 'Developing and Porting C and C++ Applications on
    > AIX',
    > > it seems that mkinstallp is only provided from AIX 5.2. Is there any doc
    > > about packaging from earlier versions ?
    > >
    > > Thanks
    > >
    > > Christian
    > >
    > >
    > Hallo Christian,
    >
    > I have used mkinstallp with both 5.1 and 5.2 successfully. However, the
    > first problem with mkinstallp is, that IBM included a little bit of
    > information about it in the AIX documentation but 'forgot' to put the
    > software on the AIX Media. Allegedly IBM intended to add it to the
    operating
    > system with some maintenance level. However, in fact it was neither added
    in
    > any ML for 5.1 (1-4) nor in the ML for 5.2 (1) yet. Hence it makes no
    > difference whether you have got the 5.2 media or not <grn>. So firstly you
    > need to ask IBM support to send it to you. Ask for bos.adt.insttools. (In
    > June I got version bos.adt.insttools.5.2.0.0.bff)
    > mkinstallp uses a shell and a perl script. Thus I would guess that it
    should
    > work with 4.3.3 also (but did not try this myself yet).
    > The documentation for packaging (and the packaging format itself) did not
    > change since at least AIX 4.3.3. You might find it here:
    >
    [url]http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/genprogc/pkg[/url]
    > ing_sw4_install.htm This document contains almost all the information you
    > need to create installp packages in backup file format bff.
    >
    > Having said that I must not forget to warn you: the mkinstallp scripts are
    a
    > bit faulty and somebody at IBM is still working on them. (Maybe that was
    the
    > reason to omit the tools from the media). So you need to know what an
    > installp package looks like to make the scripts work. Otherwise the script
    > generates empty packages and/or overwrite system directories. However,
    when
    > you know what you are doing (i.e. when you know the bff) and correct these
    > two little probs, IMHO mkinstallp is much easier to use than the mklpp
    > packaging tool from Bull.
    >
    > Regards,
    > Andreas
    >
    >
    Thanks for the reply Andreas. I'm gonna contact IBM support.

    Christian.


    Christian Guest

  5. #4

    Default Re: Packaging applications

    In article <bjrpn3$jom2@news-1.bank.dresdner.net>,
    Andreas Schulze <b79xan@gmx.de> wrote:
    >
    >"Christian" <cgregoir99@yahoo.com> schrieb im Newsbeitrag
    >news:bjq532$2j0$1@reader1.imaginet.fr...
    >> Reading the red book 'Developing and Porting C and C++ Applications on
    >AIX',
    >> it seems that mkinstallp is only provided from AIX 5.2. Is there any doc
    >> about packaging from earlier versions ?
    >I have used mkinstallp with both 5.1 and 5.2 successfully.
    [snip]
    > mkinstallp is much easier to use than the mklpp packaging tool from
    > Bull.
    I found the link at [1] useful.

    There's also Jim Abbey's (GPL'ed) lppbuild (I'm not sure if that's what
    you're referring to here).

    If you're looking for something to bundle with non-GPLed software, I
    wrote the LPP build scripts that ship with OpenSSH (see contrib/aix),
    and those scripts have been placed in the public domain so you're free
    to use and/or modify them for any purpose. They are known to work for
    OpenSSH from AIX 4.2.1 to 5.2 inclusive.

    [1] [url]http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/genprogc/pkging_sw4_install.htm[/url]

    --
    Darren Tucker (dtucker at zip.com.au)
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.
    Darren Tucker Guest

  6. #5

    Default Re: Packaging applications

    "Christian" <cgregoir99@yahoo.com> wrote in message news:<bjrtfm$9u0$1@reader1.imaginet.fr>...
    > "Andreas Schulze" <b79xan@gmx.de> wrote in message
    > news:bjrpn3$jom2@news-1.bank.dresdner.net...
    > >
    > > "Christian" <cgregoir99@yahoo.com> schrieb im Newsbeitrag
    > > news:bjq532$2j0$1@reader1.imaginet.fr...
    > > > Reading the red book 'Developing and Porting C and C++ Applications on
    > AIX',
    > > > it seems that mkinstallp is only provided from AIX 5.2. Is there any doc
    > > > about packaging from earlier versions ?
    > > >
    > > > Thanks
    > > >
    > > > Christian
    > > >
    > > >
    > > Hallo Christian,
    > >
    > > I have used mkinstallp with both 5.1 and 5.2 successfully. However, the
    > > first problem with mkinstallp is, that IBM included a little bit of
    > > information about it in the AIX documentation but 'forgot' to put the
    > > software on the AIX Media. Allegedly IBM intended to add it to the
    > operating
    > > system with some maintenance level. However, in fact it was neither added
    > in
    > > any ML for 5.1 (1-4) nor in the ML for 5.2 (1) yet. Hence it makes no
    > > difference whether you have got the 5.2 media or not <grn>. So firstly you
    > > need to ask IBM support to send it to you. Ask for bos.adt.insttools. (In
    > > June I got version bos.adt.insttools.5.2.0.0.bff)
    > > mkinstallp uses a shell and a perl script. Thus I would guess that it
    > should
    > > work with 4.3.3 also (but did not try this myself yet).
    > > The documentation for packaging (and the packaging format itself) did not
    > > change since at least AIX 4.3.3. You might find it here:
    > >
    > [url]http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/genprogc/pkg[/url]
    > > ing_sw4_install.htm This document contains almost all the information you
    > > need to create installp packages in backup file format bff.
    > >
    > > Having said that I must not forget to warn you: the mkinstallp scripts are
    > a
    > > bit faulty and somebody at IBM is still working on them. (Maybe that was
    > the
    > > reason to omit the tools from the media). So you need to know what an
    > > installp package looks like to make the scripts work. Otherwise the script
    > > generates empty packages and/or overwrite system directories. However,
    > when
    > > you know what you are doing (i.e. when you know the bff) and correct these
    > > two little probs, IMHO mkinstallp is much easier to use than the mklpp
    > > packaging tool from Bull.
    > >
    > > Regards,
    > > Andreas
    > >
    > >
    >
    > Thanks for the reply Andreas. I'm gonna contact IBM support.
    >
    > Christian.


    Easier than both of those is using rpm. I have used it to track
    revisions
    of sys maintenance scripts that we have placed on our systems, and it
    has worked pretty easily for that, also have used it to change
    applications
    that were given to us by customers with a "Here, untar and run this
    script"
    to trackable entries in our software lists.

    RPM is installed as part of the default
    install for aix 5.1(which is why they put the "L" at the end) and you
    can install it off of the aix toolkit for linux for aix4.3
    Also, rpm's show up in the "lslpp -L all "output for aix5.1 (don't
    have
    a 5.2 system yet) and rpm documentation is readily availible at
    [url]http://www.rpm.org/max-rpm/[/url]

    my $.02

    Casey
    Casey J Brotherton Guest

  7. #6

    Default Re: Packaging applications

    Hello All,

    Let me preface this by saying that I used to support AIX for IBM, and I
    wrote this document back in the 3.2.5 days. It should work fine for all
    versions of AIX due to it's simplicity, but if you want more information,
    you should consult the guide mentioned at the end of this. Following is the
    FAQ on creating installp images:


    How to create a basic install image installable through the installp command

    ================================================== ==========================

    OVERVIEW

    The following will have to be done in order to build an installp image:

    - Create a lpp_name file

    - Create a liblpp.a file which installp uses to install the image

    - Applied List File

    - Copyright Notice

    - Lpp Size Information File

    - Unique Product Id File

    - Create a list of the files that need to be backed up and use the
    backbyname

    command to back them up into an installp image.



    STEPS

    1) Create the lpp_name file, following is an example:

    4 R I custom.rte {

    custom.rte 04.01.0004.0000 01 N U custom.rte Custom Files

    [

    %

    / 24

    %

    %

    %

    %

    ]

    }

    Following is the text book description:

    4 R I FilesetName {

    FilesetName FilesetLevel 01 N U FilesetName FilesetDescription

    [

    %

    / 24

    %

    %

    %

    %

    ]

    }



    2) Create the liblpp.a file:

    - Applied List File

    This is a file that contains the full list of files that are in your

    installp image. The files in the list need to be their complete pathname

    from the root directory, and must be in relative format. The file must be

    called "FilesetName.al" For example:

    custom.rte.al


    Following is an example of what would be in a standard applied list file:

    ../lpp_name

    ../.profile

    ../.kshrc

    ../etc/security/login.cfg

    ../etc/resolv.conf

    ../usr/lpp

    ../usr/lpp/custom.rte

    *NOTE* THE lpp_name FILE MUST ALWAYS BE THE FIRST FILE IN THE LIST

    - Copyright Notice

    This is a file that contains the copyright of your install image. The

    filename must be called "FilesetName.copyright". For example:


    custom.rte.copyright

    Following is an example of a copyright file:

    Licensed Materials - Property of IBM

    576539300

    (C) Copyright International Business Machines Corp. 1985, 1995.

    (C) Copyright Regents of the University of California 1982, 1986, 1987.

    All rights reserved.

    US Government Users Restricted Rights - Use, duplication or disclosure

    restricted by GSA ADP Schedule Contract with IBM Corp.

    - LPP Size Information File

    This is a file that contains the amount of space required to install your

    product to the system, and the filesystems inwhich the space is needed.

    The filename must be called "FilesetName.size". For example:


    custom.rte.size

    Following is an example of a size file:

    /usr 24

    *NOTE* THE NUMBER NEXT TO THE FILESYSTEM NAME IS DERIVED FROM THE du -sk
    OUTPUT

    OF ALL OF THE FILES INCLUDED IN THE INSTALLP IMAGE.

    - Unique Product Id File

    This is a file that contains the unique product id you have assigned to your

    product. The filename must be called "productid", and must contain the name

    of the fileset followed by the productid. For example:

    productid

    Following is an example of a productid file:

    custom.rte 9999-99999

    - Creation Of The liblpp.a File

    Once you have created the necessary files for the liblpp.a file you need to

    now use the ar command to create the liblpp.a file:

    - Place all of the files into one directory. For example: /tmp/images

    - Go to that directory (cd /tmp/images).

    - Run the following ar command:

    ar -vq liblpp.a *

    *NOTE* YOU MUST BE LOGGED IN AS ROOT IN ORDER TO RUN THE ar COMMAND

    SUCCESSFULLY.

    - Once the liblpp.a file has been created, remove all of the files but the

    liblpp.a file in the /tmp/images directory.

    3) Create a list of the files that need to be backed up and use the
    backbyname

    command to backup the files. Following is an example of a list:

    ../lpp_name

    ../etc

    ../etc/resolv.conf

    ../etc/security

    ../etc/security/login.cfg

    ../usr

    ../usr/lpp

    ../usr/lpp/custom.rte

    ../usr/lpp/custom.rte/liblpp.a

    ../.profile

    ../.kshrc

    - Run the following to backup the files to a installp image file:

    cd /

    cat list | backup -ivqf custom.rte.4.1.4.0.bff



    If you need more information on building of installp images, you may open

    a consult line item with aix supportline, or review the following guide:

    General Programming Concepts:

    Writing and debugging programs SC23-2533



    "Casey J Brotherton" <MerlinAPD@excite.com> wrote in message
    news:33690f9f.0309121514.12c9a132@posting.google.c om...
    > "Christian" <cgregoir99@yahoo.com> wrote in message
    news:<bjrtfm$9u0$1@reader1.imaginet.fr>...
    > > "Andreas Schulze" <b79xan@gmx.de> wrote in message
    > > news:bjrpn3$jom2@news-1.bank.dresdner.net...
    > > >
    > > > "Christian" <cgregoir99@yahoo.com> schrieb im Newsbeitrag
    > > > news:bjq532$2j0$1@reader1.imaginet.fr...
    > > > > Reading the red book 'Developing and Porting C and C++ Applications
    on
    > > AIX',
    > > > > it seems that mkinstallp is only provided from AIX 5.2. Is there any
    doc
    > > > > about packaging from earlier versions ?
    > > > >
    > > > > Thanks
    > > > >
    > > > > Christian
    > > > >
    > > > >
    > > > Hallo Christian,
    > > >
    > > > I have used mkinstallp with both 5.1 and 5.2 successfully. However,
    the
    > > > first problem with mkinstallp is, that IBM included a little bit of
    > > > information about it in the AIX documentation but 'forgot' to put the
    > > > software on the AIX Media. Allegedly IBM intended to add it to the
    > > operating
    > > > system with some maintenance level. However, in fact it was neither
    added
    > > in
    > > > any ML for 5.1 (1-4) nor in the ML for 5.2 (1) yet. Hence it makes no
    > > > difference whether you have got the 5.2 media or not <grn>. So firstly
    you
    > > > need to ask IBM support to send it to you. Ask for bos.adt.insttools.
    (In
    > > > June I got version bos.adt.insttools.5.2.0.0.bff)
    > > > mkinstallp uses a shell and a perl script. Thus I would guess that it
    > > should
    > > > work with 4.3.3 also (but did not try this myself yet).
    > > > The documentation for packaging (and the packaging format itself) did
    not
    > > > change since at least AIX 4.3.3. You might find it here:
    > > >
    > >
    [url]http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/genprogc/pkg[/url]
    > > > ing_sw4_install.htm This document contains almost all the information
    you
    > > > need to create installp packages in backup file format bff.
    > > >
    > > > Having said that I must not forget to warn you: the mkinstallp scripts
    are
    > > a
    > > > bit faulty and somebody at IBM is still working on them. (Maybe that
    was
    > > the
    > > > reason to omit the tools from the media). So you need to know what an
    > > > installp package looks like to make the scripts work. Otherwise the
    script
    > > > generates empty packages and/or overwrite system directories. However,
    > > when
    > > > you know what you are doing (i.e. when you know the bff) and correct
    these
    > > > two little probs, IMHO mkinstallp is much easier to use than the mklpp
    > > > packaging tool from Bull.
    > > >
    > > > Regards,
    > > > Andreas
    > > >
    > > >
    > >
    > > Thanks for the reply Andreas. I'm gonna contact IBM support.
    > >
    > > Christian.
    >
    >
    >
    > Easier than both of those is using rpm. I have used it to track
    > revisions
    > of sys maintenance scripts that we have placed on our systems, and it
    > has worked pretty easily for that, also have used it to change
    > applications
    > that were given to us by customers with a "Here, untar and run this
    > script"
    > to trackable entries in our software lists.
    >
    > RPM is installed as part of the default
    > install for aix 5.1(which is why they put the "L" at the end) and you
    > can install it off of the aix toolkit for linux for aix4.3
    > Also, rpm's show up in the "lslpp -L all "output for aix5.1 (don't
    > have
    > a 5.2 system yet) and rpm documentation is readily availible at
    > [url]http://www.rpm.org/max-rpm/[/url]
    >
    > my $.02
    >
    > Casey

    Michael Plutt Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139