$ 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" 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@lists.phxlinux.org > To subscribe, unsubscribe, or to change your mail settings: > http://lists.phxlinux.org/mailman/listinfo/plug-discuss >