Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2009 19:22:52 -0400
From:      "John D. Gage III" <grepkeen@gmail.com>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        herbert langhans <herbert.raimund@gmx.net>, freebsd-questions@freebsd.org
Subject:   Re: removing distfiles?
Message-ID:  <4A1DCB4C.4080505@gmail.com>
In-Reply-To: <18973.42902.732223.265821@jerusalem.litteratus.org>
References:  <20090527224351.1e94029b@bobcat.edu> <18973.42902.732223.265821@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Robert Huff wrote:
> herbert langhans writes:
>
>   
>>  I can delete the .tar.gz files from /usr/ports/distfiles - is this correct?
>>  
>>  Not that some port tree management goes crazy (dependencies or such)..
>>     
>
> 	If you want to be selective, try "portsclean" which is part of
> portupgrade(-*).
>
>
> 				Robert Huff
>   
I second this notion.  "portsclean -DLC" is great for recovering disk 
space after port installs and/or using "portupgrade -arR".

-*D*
-*-distclean*
  	Clean out all the distfiles that are not referenced by any port in 
the ports tree. Specified twice (i.e. -*DD* ), clean out all the 
distfiles that are not referenced by any port that is currently 
installed. (cf. / DISTDIR/)

-*L*
-*-libclean*
  	Clean out old, duplicate and/or orphaned shared libraries.

**portsclean** first deletes duplicate shared libraries where 
appropriate, then puts away old and orphaned shared libaries to 
/usr/local/lib/compat/pkg updating symlinks properly. To keep binaries 
working, ldconfig 
<http://www.gsp.com/cgi-bin/man.cgi?section=8&topic=ldconfig>(8) is run 
after each library deletion or move.

**portsclean** is so wise you can safely run it without turning -*i* on. 
However, if you want to do further cleanup, specify the flag to be asked 
on possibly unneeded libraries too.

You can use the sysutils/libchk port to check which library is linked 
with which binaries.

-*C*
-*-workclean*
  	Clean out all the working directories of the ports tree. (cf. / 
WRKDIRPREFIX/)


-John



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A1DCB4C.4080505>