auto-removal of earlier package??

Gary Kline kline at tao.thought.org
Sun Mar 25 20:38:42 UTC 2007


On Sat, Mar 24, 2007 at 09:41:31PM -0400, Randy Pratt wrote:
> On Sat, 24 Mar 2007 16:37:58 -0800
> Gary Kline <kline at tao.thought.org> wrote:
> 
> > 
> > 	Guys,
> > 
> > 	Can anybody suggest ascript means to rm -i a whole slew of
> > 	packages I am collection in /usr/ports/packages/All/?
> > 
> > 	On some of my i686's I have collected as many as three versions 
> > 	of some *tbz files.   Other than doing this by-hand on four
> > 	boxens, I'd have automate.  pkgdb -F will ask if the user wants
> > 	to delete (the earlier) of two packages with an [n].  I'd rather
> > 	not reinvent the wheel.  
> > 
> > 	(I *thought* I was nearly finished updating this machine;
> > 	suddenty I've got 50 new ones!! )
> 
> You might try "portsclean -P".  I've not used it but it looks like
> it might be what you're looking for.  You can also test it by
> adding the "-n" (no execute) to see if it will do what you want,
> ie "portsclean -nP" for a dry run.


	Looks like you've got it right, thanks for the tip.  I did copy 
	my entire slew of *.tbz packages to a server with lots of room
	before I did the test run.  I'll diff a ls -l of the directories 
	when portsclean -P finishes.  

	gary
> 
> Randy
> -- 

-- 
  Gary Kline  kline at thought.org   www.thought.org  Public Service Unix



More information about the freebsd-questions mailing list