Deleting ports distfiles

Jeffrey Bouquet jeffreybouquet at yahoo.com
Mon Nov 17 19:05:38 UTC 2014


--------------------------------------------
>>On Mon, 11/17/14, Warren Block <wblock at 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.


More information about the freebsd-ports mailing list