Re: When to sudo apt clean?
Default User wrote:
> I am considering just running sudo apt clean (or sudo
> apt-get clean) [...]
This is what I eventually landed at and it has worked ever
since - a1 is to maintain, a2 to upgrade as well.
#! /bin/zsh
a1 () {
sudo apt-get -qq update
sudo apt autoremove >&2 2> /dev/null
sudo apt-get -qq autoremove
sudo aptitude -q=99 autoclean
sudo apt-get -qq check
apt -a list --upgradable
}
a2 () {
a1
sudo apt-get -qq upgrade
sudo apt-get dist-upgrade
}
Full source with all other apt stuff I have, suggestions
welcome:
https://dataswamp.org/~incal/conf/.zsh/apt
--
underground experts united
https://dataswamp.org/~incal
Reply to: