Clearing out the distfiles

It has been 15 months since the last blog post about clearing out distfiles.

It was time again today. This is still not scripted, however, that day may come.

The steps were:

[7:08 pro05 dvl ~] % ssh aws-1-ingress01
[11:09 aws-1-ingress01 dvl ~] % sudo service freshports stop
Stopping freshports.
Waiting for PIDS: 3073.
[11:09 aws-1-ingress01 dvl ~] % sudo service ingress stop   
Stopping ingress.
Waiting for PIDS: 3049.
[11:09 aws-1-ingress01 dvl ~] % sudo jexec freshports 
root@freshports:/ # cd /usr/ports
root@freshports:/usr/ports # make fetchindex
/usr/bin/env  fetch -am -o /usr/ports/INDEX-14.xz  https://download.FreeBSD.org/ports/index/INDEX-14.xz
/usr/ports/INDEX-14.xz                                1866 kB   18 MBps    00s
root@freshports:/usr/ports # ls -lh INDE*
-rw-r--r--  1 root wheel   47M Jun 18 11:09 INDEX-14
root@freshports:/usr/ports # du -ch -d 0 /usr/ports/distfiles/
 86G	/usr/ports/distfiles/
 86G	total
root@freshports:/ # cd /
root@freshports:/ # sh list-current-distfiles.sh > /tmp/distfiles-to-keep
ld-elf.so.1: /lib/libcxxrt.so.1: version CXXABI_1.3.11 required by /lib/libc++.so.1 not found
make: "/usr/ports/Mk/Uses/compiler.mk" line 105: warning: "/usr/bin/clang --version" returned non-zero status
make: "/usr/ports/Mk/Uses/compiler.mk" line 134: warning: "c++ -### /dev/null 2>&1" returned non-zero status
...
make: "/usr/ports/Mk/Uses/compiler.mk" line 134: warning: "c++ -### /dev/null 2>&1" returned non-zero status
root@freshports:/ # wc -l /tmp/distfiles-to-keep
  205398 /tmp/distfiles-to-keep
root@freshports:/ # find /usr/ports/distfiles -type f | grep -v -f /tmp/current-distfiles | xargs rm

root@freshports:/ # 
root@freshports:/ # du -ch -d 0 /usr/ports/distfiles/
 44G	/usr/ports/distfiles/
 44G	total
root@freshports:/ # exit
[11:33 aws-1-ingress01 dvl ~] % sudo service freshports start   
Starting freshports.
[11:33 aws-1-ingress01 dvl ~] % sudo service ingress start   
Starting ingress.
Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Comment

Scroll to Top