Re: auto-removal of earlier package??

2007-03-25 Thread Gerard Seibert
On Sat, 24 Mar 2007 16:37:58 -0800
Gary Kline [EMAIL PROTECTED] wrote:

 Can anybody suggest ascript means to rm -i a whole slew of
 packages I am collection in /usr/ports/packages/All/?

Maybe I am misreading this; however, why not just use:

rm -ri /usr/ports/packages/ALL/*

You might also try:

portsclean -C -D -L -PP

While you are at it, clean out the 'ports/distfiles' directory too.

rm -ri /usr/ports/distfiles/*

Ciao



-- 
Gerard

A friend in need is a pest indeed.


signature.asc
Description: PGP signature


Re: auto-removal of earlier package??

2007-03-25 Thread Gary Kline
On Sat, Mar 24, 2007 at 09:41:31PM -0400, Randy Pratt wrote:
 On Sat, 24 Mar 2007 16:37:58 -0800
 Gary Kline [EMAIL PROTECTED] 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  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto-removal of earlier package??

2007-03-25 Thread Gary Kline
On Sun, Mar 25, 2007 at 07:25:34AM -0400, Gerard Seibert wrote:
 On Sat, 24 Mar 2007 16:37:58 -0800
 Gary Kline [EMAIL PROTECTED] wrote:
 
  Can anybody suggest ascript means to rm -i a whole slew of
  packages I am collection in /usr/ports/packages/All/?
 
 Maybe I am misreading this; however, why not just use:
 
   rm -ri /usr/ports/packages/ALL/*
 
 You might also try:
 
   portsclean -C -D -L -PP
 
 While you are at it, clean out the 'ports/distfiles' directory too.
 
   rm -ri /usr/ports/distfiles/*
 

Yeah, I do clean out thw distfiles every so often.  I am looking
to maintain only the latest packages, mostly custom-built with
gcc-4.2 in most cases.  As for rm -i, well, I ain't that brave:-)

gary


 Ciao
 
 
 
 -- 
 Gerard
 
 A friend in need is a pest indeed.



-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


auto-removal of earlier package??

2007-03-24 Thread Gary Kline

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!! )

tia,

gary



-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto-removal of earlier package??

2007-03-24 Thread Jonathan Horne
On Sat, 24 Mar 2007 16:37:58 -0800
Gary Kline [EMAIL PROTECTED] 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!! )
 
   tia,
 
   gary
 
 
 
 -- 
   Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
 

out of curiosity, whats stopping from 'rm -rf /usr/ports/*' , and pulling down 
a whole new ports tree?

otherwise, check into 'portsclean -C' and 'portsclean -D'.  the -D should do 
the trick for you, but the -C might also be of use to you too.

cheers,
jonahtan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto-removal of earlier package??

2007-03-24 Thread Randy Pratt
On Sat, 24 Mar 2007 16:37:58 -0800
Gary Kline [EMAIL PROTECTED] 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.

Randy
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto-removal of earlier package??

2007-03-24 Thread Robert Huff

Jonathan Horne writes:

  otherwise, check into 'portsclean -C' and 'portsclean -D'.  the
  -D should do the trick for you, but the -C might also be of use
  to you too.

I run portsclean -CDD once a week.  (Yes, two 'D's.  Read the
manpage for why.)


Robert Huff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]