SUMMARY: convert installed package back to package file?

From: John Christian <john.christian_at_TheCReGroup.com>
Date: Wed Mar 30 2005 - 17:16:05 EST
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
Received on Wed Mar 30 17:20:25 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:45 EST