# opnsense-code tools ports src
# cd /usr/src# git checkout stable/21.1
# pkg install autoconf automake libtool
# cd /usr/ports/sysutils/htop# make install clean
# opnsense-code tools src
# opnsense-code ports
# pkg query --all '%o %R' | grep -v '\ OPNsense$'sysutils/htop unknown-repositorynet/arping unknown-repository
# cd /usr/ports/sysutils/htop && make deinstall && make clean
# cd /usr/ports/net/arping && make deinstall && make clean
# rm -rf /usr/ports/
# cd /usr/src# git checkout stable/22.1
make install clean
--- usage.o ---cc -pipe -DHARDENEDBSD -fPIE -fPIC -fsanitize=safe-stack -fstack-protector-all -fno-strict-aliasing -DHARDENEDBSD -DNEEDS_BOOL_TYPEDEF -DHASTASKS -DHAS_PAUSE_SBT -DHAS_DUP2 -DHAS_CLOSEFROM -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHAS_FILEDESCENT -DHAS_TMPFS -DHASWCTYPE_H -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO_IDEV -DHAS_VM_MEMATTR_T -DNEEDS_DEVICE_T -DHAS_CDEV2PRIV -DHAS_NO_SI_UDEV -DHAS_SYS_SX_H -DHASFUSEFS -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT -DHAS_NO_6PPCB -DNEEDS_BOOLEAN_T -DHAS_SB_CCC -DHAS_FDESCENTTBL -DFREEBSDV=11000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHASUTMPX -DHAS_STRFTIME -DLSOF_VSTR=\"11.2-RELEASE-p20-HBSD\" -I/usr/src/sys -O2 -c usage.c -o usage.o--- dnode2.o ---1 warning and 1 error generated.*** [dnode2.o] Error code 1make[3]: stopped in /usr/obj/usr/ports/sysutils/lsof/work/lsof-4.93.21 errormake[3]: stopped in /usr/obj/usr/ports/sysutils/lsof/work/lsof-4.93.2*** [dnode2.o] Error code 2make[2]: stopped in /usr/obj/usr/ports/sysutils/lsof/work/lsof-4.93.2--- lib/liblsof.a ---A failure has been detected in another branch of the parallel makemake[3]: stopped in /usr/obj/usr/ports/sysutils/lsof/work/lsof-4.93.2/lib*** [lib/liblsof.a] Error code 2make[2]: stopped in /usr/obj/usr/ports/sysutils/lsof/work/lsof-4.93.22 errorsmake[2]: stopped in /usr/obj/usr/ports/sysutils/lsof/work/lsof-4.93.2===> Compilation failed unexpectedly.Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure tothe maintainer.*** Error code 1Stop.make[1]: stopped in /usr/ports/sysutils/lsof*** Error code 1Stop.make: stopped in /usr/ports/sysutils/htop
# cd /usr/src# git checkout stable/20.1
How would you go about removing ports and src to free the disk space back up?
$ opnsense-code tools src$ pkg install autoconf automake libtool$ cd /usr/ports/sysutils/htop$ make install clean