Solved How to clean system with all unused dependencies?

I don't know why but from repository gone portsclean and now I do not know how to clean system with all unused dependencies...
 
Packages are nothing but pre-compiled ports. In fact a port builds a package and it's the resulting package that gets installed. So pkg-autoremove(8) is the correct way to do it.
 
I haven't messed with this in a while. I looked at pkg autoremove and it listed a number of ports/packages to deinstall that I know I use, such as ccache, unzip, docbook, all the linux-c6 stuff and so on. In fact, 246 packages in all.
 
I haven't messed with this in a while. I looked at pkg autoremove and it listed a number of ports/packages to deinstall that I know I use, such as ccache, unzip, docbook, all the linux-c6 stuff and so on. In fact, 246 packages in all.
They were probably installed as dependencies of other packages. You can mark them as not automatically installed with e.g. pkg set -A 0 unzip to make pkg autoremove ignore them.
 
Back
Top