Re: Ports Dir

2007-07-04 Thread Yuri Pankov
On Wed, Jul 04, 2007 at 02:19:51PM -0500, [EMAIL PROTECTED] wrote:
> On 04/07/07, Robert Huff <[EMAIL PROTECTED]> wrote:
>> Pablo Mora writes:
>>
>> >  > Can one run
>> >  >
>> >  > 'make clean'
>> >  >
>> >  > in the /usr/ports directory in the hope of reducing disk space?
>> >
>> >  portsclean -CDD
>>
>> "portsclean" is part of the "portupgrade" port, not the base
>> system.  Not everyone has it installed, or wants to.
>> To the original poster: yes, you can.  Mind you, I'm not sure
>> it's the most efficient way - since I have "portupgrade" installed,
>> I prefer portsclean.
>>
>
> Indeed.  If you set WRKDIRPREFIX you can merely
> rm -r $WRKDIRPREFIX/ports.  The distfiles can be
> a bit more difficult to deal with in a sane manner
> without some sort of add-on tool.
>
> -- 
> --

That tool lives in /usr/ports/Tools/scripts and is called distclean.sh,
I think :)


Yuri


pgphsnPzDWQ66.pgp
Description: PGP signature


Re: Ports Dir

2007-07-04 Thread [EMAIL PROTECTED]

On 04/07/07, Robert Huff <[EMAIL PROTECTED]> wrote:

Pablo Mora writes:

>  > Can one run
>  >
>  > 'make clean'
>  >
>  > in the /usr/ports directory in the hope of reducing disk space?
>
>  portsclean -CDD

"portsclean" is part of the "portupgrade" port, not the base
system.  Not everyone has it installed, or wants to.
To the original poster: yes, you can.  Mind you, I'm not sure
it's the most efficient way - since I have "portupgrade" installed,
I prefer portsclean.



Indeed.  If you set WRKDIRPREFIX you can merely
rm -r $WRKDIRPREFIX/ports.  The distfiles can be
a bit more difficult to deal with in a sane manner
without some sort of add-on tool.

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


Re: Ports Dir

2007-07-04 Thread Robert Huff
Pablo Mora writes:

>  > Can one run
>  >
>  > 'make clean'
>  >
>  > in the /usr/ports directory in the hope of reducing disk space?
>  
>  portsclean -CDD

"portsclean" is part of the "portupgrade" port, not the base
system.  Not everyone has it installed, or wants to.
To the original poster: yes, you can.  Mind you, I'm not sure
it's the most efficient way - since I have "portupgrade" installed,
I prefer portsclean.


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


Re: Ports Dir

2007-07-04 Thread Pablo Mora

On 7/4/07, Grant Peel <[EMAIL PROTECTED]> wrote:

Can one run

'make clean'

in the /usr/ports directory in the hope of reducing disk space?



portsclean -CDD


--

PGP KeyID: 0xC730A079
Key fingerprint = F626 3C47 02F5 E43C 6620  8A1B E7A8 533B C730 A079
gpg --keyserver pgp.mit.edu --recv-keys C730A079


 ASCII Ribbon Campaign
 Against HTML e-mail & Microsoft Attachments
FreeBSD Since 4.x & unixbsd.blogspot.com maintainer

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


Re: Ports Dir

2007-07-04 Thread Yuri Pankov
On Wed, Jul 04, 2007 at 11:02:02AM -0400, Grant Peel wrote:
> Can one run 
> 
> 'make clean'
> 
> in the /usr/ports directory in the hope of reducing disk space?
> 
> -Grant

Yes, you can, but it will take significant amount of time. Better
approach would be using portsclean (it's in portupgrade package) - you
can clean stale `work' dirs, unreferenced distfiles, etc. with it. And
to just clean stale `work' dirs you can use something like `rm -rf
/usr/ports/*/*/work'.


HTH,
Yuri


pgpAKwi3t7Uea.pgp
Description: PGP signature