Hi Nathan, On Fri, Jun 08, 2007 at 17:24:13 -0500, Nathan Ladd wrote:
(apologies to Johannes for initially replying to him and not the list on accident)
No problem :-)
On 6/8/07, Johannes Winkelmann <jw@smts.ch> wrote: [...] I've really been frustrated by this problem for years, and the only solutions I've come up with are:
At the risk of pointing out the obvious, there's a tool called pkgfoster which is included in opt/prt-utils [1] which looks for ports which have no dependencies. Unlike prt-get, it's interactive, so it'll ask for before installing a port, and will remember the decision. This will still require you to decide which ports you want to keep, and which ones you can get rid of, but at least it won't present you the ports which definitely have to stay.
1. Stop caring that you may have some extra packages you don't need lying around (this is actually the best approach unless you are crammed for space). If you run prt-get depinst gnome-terminal, don't expect to get your system back to the pristine state it started in when you first installed crux.
True. There's a slightly excessive path we could walk by keeping track of the list of packages installed or removed by prt-get, and allowing to revert to previous states (a kind of undo history). There was a tool to do that, although you had to set the breakpoints manually, like (mockup, I don't remember how the syntax was exactly): $ prt-state store $ prt-get depinst gnome-terminal [don't like it] $ prt-state revert Although the tool is not available anymore, unless you want multiple states this can be done by simply storing the list of installed packages for 'store' and diff'ing the current list of installed packages against the previously stored one and remove those only in the 2nd list. Of course, this will only work reliably if you do it immediately. With the additional call to 'dependent' this could be made fairly safe, though. HTH, Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch