Hi
I want to remove obsolete/duplicate packages from (/var/cache/pkg). There are different versions of same package present in that directory. For instance, youtube-dl has three different versions in cache directory:
So, I want to delete all of them except the one which is installed in my system. I tried to use "pkg clean", but it is removing the binaries of all the packages (whether installed or not).
The man page of "pkg clean" says to use "pkg clean -a" to remove everything, but "pkg clean" is already removing everything without "-a" option. So, kindly guide me that how can I remove only those packages from (/var/cache/pkg) which are not installed in my system?
I want to remove obsolete/duplicate packages from (/var/cache/pkg). There are different versions of same package present in that directory. For instance, youtube-dl has three different versions in cache directory:
Code:
youtube_dl-2020.12.07.txz
youtube_dl-2020.12.12.txz
youtube_dl-2020.12.14.txz
The man page of "pkg clean" says to use "pkg clean -a" to remove everything, but "pkg clean" is already removing everything without "-a" option. So, kindly guide me that how can I remove only those packages from (/var/cache/pkg) which are not installed in my system?