On 07/ 1/10 10:11 AM, Keith Mitchell wrote:
Hi all,

Is there an easy way to remove an old version of a pkg from an IPS repo
(even if it's an unsupported method)? I have a large (~200MB) package
that I want to publish to a nightly repo, but keeping all the old
versions will obvious eat up disk space pretty quickly.

No easy (supported) way yet, but hopefully soon.

If it's not possible, I can keep this one pkg in a separate repo and
simply destroy/re-create each time, but if it's possible to remove the
old versions then I think I'd like to go that route.

The if-it-breaks-you-get-to-keep-all-the-pieces way is to:

  1) stop any depot server pointed at the repositroy

  2) remove the manifest file $REPO/pkg/<pkg_name>/<version>

  3) empty the $REPO/index directory

  4) execute: /usr/lib/pkg.depotd --rebuild --exit-ready

Note this won't remove any files that the package delivered to the repository. That's much harder because you would have to find the set of files (hashes) declared in the package manifest you're removing that are not shared with any other package.

If you really want to go through that work, you'd have to remove the files manually using: $REPO/file/<first_two_letters_of_hash>/<hash>.

Cheers,
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to