commands

Kevin Fries kevin at fries-biro.com
Mon Dec 22 23:52:42 MST 2014


$ sudo apt-get update && sudo apt-get upgrade

This way, it will only run upgrade if update was successful.   (i.e. no
network error)

Kevin
On Dec 22, 2014 3:46 PM, "Michael Havens" <bmike1 at gmail.com> wrote:

> I was thinking, I could type in 'sudo apt-get update;sudo apt-get upgrade'
> but what would be a more efficient way?
>
> sudo {apt-get {update; upgrade}}
> sudo: {apt-get: command not found
> upgrade}}: command not found
>
> sudo apt-get {update; upgrade}
> E: Invalid operation {update
> upgrade}: command not found
>
> sudo {apt-get {update, upgrade}}
> sudo: {apt-get: command not found
>
> sudo apt-get {update, upgrade}
> E: Invalid operation {update,
>
> This is interesting: when I typed in 'sudo {apt-get {update; upgrade}}' it
> didn't give me an error for '{update'
>
> So does anyone know what I'm talking about and how to do it?
> :-)~MIKE~(-:
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20141222/dddc8b62/attachment.html>


More information about the PLUG-discuss mailing list