<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>nDarkness &#187; Slackware</title> <atom:link href="http://www.ndarkness.com/tag/slackware/feed/" rel="self" type="application/rss+xml" /><link>http://www.ndarkness.com</link> <description>Step Into The Light</description> <lastBuildDate>Mon, 20 Feb 2012 01:44:37 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>Linux System Update Script</title><link>http://www.ndarkness.com/2009/11/280/linux-system-update-script/</link> <comments>http://www.ndarkness.com/2009/11/280/linux-system-update-script/#comments</comments> <pubDate>Sat, 07 Nov 2009 02:07:47 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Utilities]]></category> <category><![CDATA[Slackware]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Ubuntu]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=280</guid> <description><![CDATA[In my experience with Linux distributions, Slackware and Ubuntu/Kubuntu, there are a couple of different methods used to update the system. Of course we can always use a gui to do the updates but what fun is that? The two commands used to update a Debian based system are: Now while this doesn&#8217;t require a [...]]]></description> <content:encoded><![CDATA[<div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div
class='shareaholic-like-buttonset' style='float:right;height:30px;'><a
class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F11%2F280%2Flinux-system-update-script%2F' data-shr_title='Linux+System+Update+Script'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F11%2F280%2Flinux-system-update-script%2F'></a><a
class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F11%2F280%2Flinux-system-update-script%2F' data-shr_title='Linux+System+Update+Script'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F11%2F280%2Flinux-system-update-script%2F' data-shr_title='Linux+System+Update+Script'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p>In my experience with Linux distributions, Slackware and Ubuntu/Kubuntu, there are a couple of different methods used to update the system. Of course we can always use a gui to do the updates but what fun is that?</p><p>The two commands used to update a Debian based system are:</p><pre class="brush: bash; title: ; notranslate">
safety@nDarkness:~/bin$ sudo apt-get update; sudo apt-get upgrade
</pre><p>Now while this doesn&#8217;t require a great deal of typing, let&#8217;s see if we can shorten it to suit our needs.</p><p>If you do not already have somewhere to store your personal scripts, the following command will do this for you and allow you to enter the code we will use:</p><pre class="brush: bash; title: ; notranslate">
safety@nDarkness:~$ mkdir bin; cd bin; vi apt-auto
</pre><p>Press i for insert and create the following script:</p><pre class="brush: bash; gutter: true; title: ; notranslate">
#!/bin/bash

sudo apt-get update; sudo apt-get upgrade
</pre><p>This is all we need to type for our script to produce the results we are looking for. Now let&#8217;s save our script by pressing Esc =&gt; :wq =&gt; .</p><p>To run our script we can type:</p><pre class="brush: bash; title: ; notranslate">
safety@nDarkness:~/bin$ bash ./apt-auto
</pre><p>You should see the output from the two commands used in the script printed to the screen. Now let&#8217;s make our script executable so we don&#8217;t have to type bash to make it run.</p><p>The following command will accomplish what we are looking for:</p><pre class="brush: bash; title: ; notranslate">
safety@nDarkness:~/bin$ chmod +x apt-auto
</pre><p>Now to run our command we simply need to type:</p><pre class="brush: bash; title: ; notranslate">
safety@nDarkness:~/bin$ ./apt-auto
</pre><p>We now have a working script to do our update process and it is significantly shorter than the first option we used. As always all comments are welcomed.</p><div
class="shr-publisher-280"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2009/11/280/linux-system-update-script/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 10/16 queries in 0.790 seconds using disk: basic
Object Caching 420/442 objects using disk: basic

Served from: www.ndarkness.com @ 2012-05-21 07:50:01 -->
