hello all, I am trying to locate all the packages that I installed that haven't been touched in a while. My first thought was to just get a list of packages and when they were installed
and then start looking at their dependencies so that I can see what installed what and if I need it anymore. However this seems horribly inefficient but this was the only way I knew how to accomplish the clean up that I am looking for. I did look through the man pages of pkg-info. I also checked out pkg-audit because that also sounds like something auditing might be able to tell me but I didn't find flags that stood out to me.
So with that said does anyone have a better way to accomplish this clean up task on my machine (it is a laptop) or am I going down the best route currently and I just need to accept that this is not going to be a 15 - 30 minutes task and instead will be more involved
Bash:
for app in `pkg info | awk '{print $1}'`;
do
pkg info $app | grep -B 4 "Installed on";
done
So with that said does anyone have a better way to accomplish this clean up task on my machine (it is a laptop) or am I going down the best route currently and I just need to accept that this is not going to be a 15 - 30 minutes task and instead will be more involved