You can also add a package name to install it at the same time as doing the upgrade, though personally I prefer to do that as a separate command so I can see what dependencies are needed.
&& executes the second command, if the command before was successful, || executes the second command if the first one was unsuccessful and ; executes the second command regardless of success.
Ain’t nobody got time for two commands.
sudo apt upgrade --update
Are you serious? That’s a thing? I’ve been doing apt update and apt upgrade for years
I’m absolutely serious.
You can also add a package name to install it at the same time as doing the upgrade, though personally I prefer to do that as a separate command so I can see what dependencies are needed.
Yes.
Also don’t forget && exists for sequential completion of any commands
&&
executes the second command, if the command before was successful,||
executes the second command if the first one was unsuccessful and;
executes the second command regardless of success.These are much more useful than the :() :;: operator