I use synaptic to download first and install later.
Usually I install everything but core system files, that I leave to install later.
Synaptic button "delete cached package files" ignores the fact of many files not being installed yet.
By deprecated I mean older version of downloaded packages.
I have already tried apt-get autoclean and it is not what I need (it cleaned nothing actually...). clean option is also useless, it cleaned everything!
Can it be done with some simple command or I have to use some script to compare installed VS downloaded/old versions?
var/cache/apt/archives occupying huge space didn't help
I need to do it that way because of: https://unix.stackexchange.com/questions/624845/how-to-disable-and-re-enable-the-same-lvm-mirror-leg-only-to-update-system-core
Btw, now, for installed ones I am using:
apt list --installed |sed -r 's"(.*)/.* (.*) (.*) .*"\1_\2_\3.deb"' |while read strFile;do strFile="echo "$strFile" |sed -r 's":"%3a"'";if [[ -f "$strFile" ]];then sudo rm -v $strFile;fi;done