SUMMARY: convert installed package back to package file?

From: John Christian (john.christian_at_TheCReGroup.com)
Date: 03/31/05

  • Next message: deepti singh: "NFS VERSION"
    Date: Wed, 30 Mar 2005 17:16:05 -0500
    To: <sunmanagers@sunmanagers.org>
    
    

    THANKS TO:

    Bernd Schemmer
    Richard Butler
    Deb Santomauro
    Gavin Brennan
    Matthew Stier
    Stan Pietkiewicz
    Bruce Kirkland
    NO UCE

    SUMMARY:

    As usual, this list rocks! Can you dump an installed package into a complete
    package file? No. But it could be possible to collect most of the raw pieces
    necessary to construct a new package file from scratch. The
    /var/sadm/install/contenst file and /var/sadm/pkg/<my_pkg> folder should have
    most of the directories, files, and permissions defined with a particular
    package. Once the raw material is collected in a staging area, it's just a
    matter of following a typical self-package creation process. The procedures
    for building your own packages are well documented so I'm not including those
    steps here. Some quick links if you require such details are:

    http://www.sunfreeware.com/pkgadd.html
    http://www.garex.net/sun/packaging/intro.html
    http://mail.gnome.org/archives/garnome-list/2003-August/msg00062.html

    Not so fast! Before you rush off to build your phoenix.pkg, notice what's
    overlooked in the steps above: those pesky pre and post installation scripts
    included with some packages. If those are gone (which they usually are)
    there's no way to know what they did. Fortunately in my case, the package was
    just used as a way to distribute a collection of directories and files and did
    not -as far as anyone can remember- contain any custom pre or post
    installation scripts.

    Cheers,
    -John Christian

    ________________________________

    From: sunmanagers-bounces@sunmanagers.org on behalf of John Christian
    Sent: Wed 3/30/2005 10:32 AM
    To: sunmanagers@sunmanagers.org
    Subject: convert installed package back to package file?

    hi gurus,

    So let's pretend we have a package installed but nobody has the original
    media
    or copy of the package file. Is there any way to remove an installed package
    from Solaris 9 but, instead of it just disappearing, end up with the original
    package file I could use to re-install if necessary?

    Yes, the logic behind doing this is rather flimsy. Everyone should have a
    copy
    of all original installation media and all packages/patches ever applied
    since
    the first install. But it's not entirely unreasonable to shift pkgadd into
    reverse and end up with the original pkg file. Is it?

    TIA,
    -John
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: deepti singh: "NFS VERSION"

    Relevant Pages

    • Re: dist-upgrade problem (was Re: /etc/modutils/0keep: line 9: keep: command not found)
      ... Reading package fields... ... i t does not have execute permission ... installation script returned error exit status 100. ...
      (Debian-User)
    • Re: Finding installed package files
      ... >, and who is going to supply this documentation. ... > is a package with the common man pages for the thousand odd common commands ... tell me, as an installation option for some large packages, what was ... >>a set of commands and 'man' pages, could produce such a directory to make it ...
      (alt.os.linux.redhat)
    • Security Update for Microsoft Data Access Components (KB832483)
      ... : An error occurred while setup was trying to ... verify the version of Microsoft Data Access Components ... package returned FALSE, or there was a fatal error while ... installation. ...
      (microsoft.public.windowsupdate)
    • Security Update for Microsoft Data Access Components (KB832483)
      ... : An error occurred while setup was trying to ... verify the version of Microsoft Data Access Components ... package returned FALSE, or there was a fatal error while ... installation. ...
      (microsoft.public.windowsupdate)
    • Re: bits/news from the users of Debian?
      ... "Le bottin des jeux Linux" speaks about 800 Linux games and i hope that's growing. ... I start with Debian, then test Mandrake because it seem's at this time very complicated. ... I think graphics interface for installation is a good thing: you have make a good job! ... I use Debian Sid and I have experiment a lot of problem some years ago because i install too recent package on Sid which are not well tested. ...
      (Debian-User)