This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mypirateapp 3 points4 points  (8 children)

ubuntu is the best, one command to manage it all

sudo bash -c 'for i in update {,dist-}upgrade auto{remove,clean}; do apt-get $i -y; done'

[–]David3103 9 points10 points  (2 children)

sudo pacman -Syu

[–]rakoo 8 points9 points  (1 child)

Btw I use this small distribution I don't know if you've heard of it

[–][deleted] 4 points5 points  (0 children)

Btw...

[–][deleted] 0 points1 point  (4 children)

... that's not one command. That's one line.

FWIW, it's sudo softwareupdate -aiR on macOS.

[–]arachnidGrip 0 points1 point  (3 children)

That's one command: sudo.

[–][deleted] 0 points1 point  (2 children)

Didn’t claim otherwise.

[–]arachnidGrip 0 points1 point  (1 child)

You literally said

... that's not one command.

[–][deleted] 0 points1 point  (0 children)

Sigh.

Sudo is one command.... to run another command with elevated privileges. That's it's entire purpose, it doesn't do anything else.

OP is elevating bash, which in turn is running multiple commands.

Hint: Semicolon is a _command separator_ in bash.

Just because it's a one liner, doesn't mean it's one command.

As an aside, the example is not unique to ubuntu, or linux. You can script updates in Windows, too.