On 07/ 1/10 10:26 AM, Shawn Walker wrote:
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.
"Hopefully soon" is good.
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>.
Since it's the files that take up the 200mb, and since this sounds like
something I'm bound to mess up in some small fashion (likely in a
fashion that I don't find for a few months, and utterly trashes the
repo), I think I'll go with the "separate repo" option.
Thanks for the response!
- Keith
Cheers,
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss