Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2014 11:02:44 -0800
From:      Jeffrey Bouquet <jeffreybouquet@yahoo.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Deleting ports distfiles
Message-ID:  <1416250964.68137.YahooMailBasic@web140905.mail.bf1.yahoo.com>
In-Reply-To: <alpine.BSF.2.11.1411171101270.67254@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--------------------------------------------
>>On Mon, 11/17/14, Warren Block <wblock@wonkity.com> wrote:


 
 >>Actually, portmaster can do
 >>that also:
 >>portmaster -t -y
 >>-clean-distfiles
 _______________________________________________
 Test first"   I did not want the majority deleted...

#portsclean -DD -n | tee -a /gz_files
#sed -i bak 's.Delete \/usr\/ports\/distfiles\/..g'   /gz_files
..... fifteen minutes on the web to find that line above escaping the path
# grep / /gz_files     | less   # in another xterm, /bin/rm -rf the extra directories
# grep -v / /gz_files | grep bz2 | xargs -J % /bin/rm -iv %    ... tests it, check output
# ......................................................................-v %    .... does the above
Repeat the immeditate two lines
above (-iv then -v ) for gz, -i zip, xz, 
(the latter I forgot BTW) and that should be most
of them. I deleted 500 files that way, so am done for the year.
.........................................................................
Easier posting here than in the forum...
Pardon any typos.



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