Ports Clean

Philip M. Gollucci philip at riderway.com
Fri Jul 13 18:20:20 UTC 2007

Josh Paetzel wrote:
> On Friday 13 July 2007, Grant Peel wrote:
>> Hi all,
>> My ports collection on some of the servers is wasting alot of
>> space.
>> What would be the best method to 'cleanout' the ports dir without
>> adversly affecting the operation of the rest of the server?
>> All of the servers are live production servers.
>> -Grant
> There are a few possibilities.
> 1) cd to each installed ports dir and do a make clean
> 2) do the same but a make distclean
> 3) rm -rf /usr/ports/*/*/work
> 4) rm -rf /usr/ports and recvsup the tree
No -- install /usr/ports/ports-mgmt/portupgrade
via ports or packages.

portsclean -DD
portsclean -C

Philip M. Gollucci (philip at riderway.com) 323.219.4708
Senior System Admin - Riderway, Inc. http://riderway.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

More information about the freebsd-questions mailing list