<p dir="ltr">$ sudo apt-get update && sudo apt-get upgrade</p>
<p dir="ltr">This way, it will only run upgrade if update was successful. (i.e. no network error)</p>
<p dir="ltr">Kevin</p>
<div class="gmail_quote">On Dec 22, 2014 3:46 PM, "Michael Havens" <<a href="mailto:bmike1@gmail.com">bmike1@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I was thinking, I could type in 'sudo apt-get update;sudo apt-get upgrade' but what would be a more efficient way?<div><br></div><div>sudo {apt-get {update; upgrade}}</div><div><div>sudo: {apt-get: command not found</div><div>upgrade}}: command not found</div><div><div><br></div><div>sudo apt-get {update; upgrade}</div><div></div></div><div><div>E: Invalid operation {update</div><div>upgrade}: command not found</div><div><br></div><div>sudo {apt-get {update, upgrade}}</div><div>sudo: {apt-get: command not found</div><div><br></div><div>sudo apt-get {update, upgrade}</div><div>E: Invalid operation {update,</div><div><br></div><div>This is interesting: when I typed in 'sudo {apt-get {update; upgrade}}' it didn't give me an error for '{update'</div><div><br></div><div>So does anyone know what I'm talking about and how to do it?</div><div>:-)~MIKE~(-:</div></div>
</div></div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div>