If do by example "touch /usr/local/bin/delethisoldfile".
That file does not belong to an installed package.
How to get a list of all these files ?
That file does not belong to an installed package.
How to get a list of all these files ?
find /usr/local -type f -ctime +90
should show only some config files under etc (and share/emacs/site-lisp/default.el).#!/bin/sh
# get a list of all files installed by all packages
pkg info --list-files -a | awk -f ./files-not-installed.awk | sort > /tmp/l1
# get a list of all files
find -x /usr/local -type f -or -type l 2>/dev/null | sort > /tmp/l2
# show difference
diff /tmp/l1 /tmp/l2 | less
$1 ~ /\/usr\/local\// {c=index($1,":");if(c==0){for(i=1;i<NF;i++){printf "%s ",$i}printf "%s\n",$i}}