Yeah, I use apt-get for autoremove (alias "aremove").
Re. the -y switch, I wasn't thinking about your actual request - I wrongly assumed you wanted no prompt, when you're asking for no output. I can't say for apt (haven't tested) but for apt-get, you can use -qq for error output only or -q for no output at all.
Since you're using an alias anyway - no reason not to use apt-get with the -qq switch if it doesn't work with apt. The only benefit to using apt in this instance is color output, which you want to suppress anyway. So your new alias should be:
sudo apt update; sudo apt list --upgradable; sudo apt-get -qq dist-upgrade
Re. the -y switch, I wasn't thinking about your actual request - I wrongly assumed you wanted no prompt, when you're asking for no output. I can't say for apt (haven't tested) but for apt-get, you can use -qq for error output only or -q for no output at all.
Since you're using an alias anyway - no reason not to use apt-get with the -qq switch if it doesn't work with apt. The only benefit to using apt in this instance is color output, which you want to suppress anyway. So your new alias should be:
sudo apt update; sudo apt list --upgradable; sudo apt-get -qq dist-upgrade
Comment