[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rebuilding .tgz from Installed Package



On Mon, Nov 29, 2004 at 08:10:42PM -0500, Ray wrote:
> Is there a way to rebuild a package's .tgz file after installing
> the package?  For example, I would like to be able to upgrade to
> the latest Postfix, try it out, and if it works horribly pkg_delete
> it and pkg_add the original.  Thanks.
> 
> -Ray-

Code in latest pkg_create should be able to do it.

Just pass it the packing-list name, and see if it can do it with
your postfix.


It will work much more safely with recent packages, because they hold
more annotations to ensure the files haven't changed.


It won't work with the few packages that hve @comment no checksum
for obvious reasons.

Old packages won't work at all, because they didn't keep everything around,
install scripts for instance...

You should also be able to use pkg_create -n  to check that an existing
package didn't change.