apt and apt-get - was Re: follow-up (and problems) about: recommendation for all-in-one printer?
Liam Proven
lproven at gmail.com
Sat Nov 7 14:31:19 UTC 2020
On Fri, 6 Nov 2020 at 23:01, Bret Busby <bret.busby at gmail.com> wrote:
> So, for clarity, what then, is the better syntax for the following command?
>
> sudo apt-get -y update && sudo apt-get -y dist-upgrade && sudo apt-get
> -y autoremove && sudo apt-get -y autoclean
>From my perspective, you have the switches before the command, and
you're using the old apt-get command instead of the modern
replacement.
I save the following in my command history:
apt update ; apt full-upgrade -y ; apt autoremove -y ; apt purge ; apt clean
I know Ralf et al will disapprove, but I don't care about being nagged
about supplemental packages. Just do it and get out of my way.
AIUI `&&` only does the next command if the previous one succeeded
whereas `;` just carries on. I don't care. Do as much as you can and
get out of my way. Also, it's less typing.
--
Liam Proven – Profile: https://about.me/liamproven
Email: lproven at cix.co.uk – gMail/gTalk/gHangouts: lproven at gmail.com
Twitter/Facebook/LinkedIn/Flickr: lproven – Skype: liamproven
UK: +44 7939-087884 – ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053
More information about the ubuntu-users
mailing list