Emanuel Berg wrote: 
> 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
> }

It seems unlikely to me that you want to do an autoremove before
you have done an upgrade.

apt autoremove calls apt-get autoremove. Doing that twice seems
unwise or useless.

apt-get check is an extremely basic, fast check to see if the
cache is in place. Running it after update is useless --
any failure would appear in update first.

> a2 () {
>     a1
>     sudo apt-get -qq upgrade
>     sudo apt-get dist-upgrade
> }

In general people don't want to dist-upgrade automatically.
Maybe you do.

-dsr-

Reply via email to