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
autoclean
. Seeman apt-get
. Alternately, make a very minor change to your workflow: Clean your cache right after you finish installing all those core system updates. – user535733 Dec 16 '20 at 20:50apt-get autoclean
and it is not what I need (it cleaned nothing actually...). clean option is also useless, it cleaned everything! Yep I enabled synaptic option but it will only work for new files not old ones. – Aquarius Power Dec 16 '20 at 20:58fluid-soundfont-gm_3.1-5.1_all.deb
is ineligible for autoclean. It's the latest version; not obsolete, not "deprecated". You canclean
it: `sudo apt clean <package_name>...but that leads you down the path of scripting a custom solution. Are you saying that your apt cache is simply too large? (how large is it?) – user535733 Dec 16 '20 at 22:33apt list --installed |sed -r 's"(.*)/.* (.*) (.*) .*"\1_\2_\3.deb"' |while read strFile;do if [[ -f "$strFile" ]];then sudo rm -v "$strFile";fi;done
– Aquarius Power Dec 24 '20 at 02:16