<?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>gablog &#187; lenny</title>
	<atom:link href="http://gabo.homelinux.com/en/tag/lenny/feed/" rel="self" type="application/rss+xml" />
	<link>http://gabo.homelinux.com</link>
	<description>Fino ad ora ho avuto un sito brutto. Ora ho un blog.</description>
	<lastBuildDate>Fri, 13 Nov 2009 14:29:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Upgrading etch to lenny</title>
		<link>http://gabo.homelinux.com/en/2009/03/aggiornamento-etch-lenny/</link>
		<comments>http://gabo.homelinux.com/en/2009/03/aggiornamento-etch-lenny/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 19:10:06 +0000</pubDate>
		<dc:creator>gabo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[lenny]]></category>

		<guid isPermaLink="false">http://gabo.homelinux.com/?p=148</guid>
		<description><![CDATA[On febrary 14th the Debian distribution 5.0 (lenny) passed from testing to stable, so I need to upgrade. Probably I will do it also on production server in office, but now I start whith my home server, since it's my first dist-upgrade.
Backup
First of all a complete backup:


rsync -vrpoglHDIt --delete --progress \
--exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/var/run \
--exclude=/var/lock [...]]]></description>
			<content:encoded><![CDATA[On febrary 14th the Debian distribution 5.0 (lenny) passed from testing to stable, so I need to upgrade. Probably I will do it also on production server in office, but now I start whith my home server, since it's my first <strong>dist-upgrade.</strong>
<h3>Backup</h3>
First of all a complete backup:

<pre class="brush: bash;">
rsync -vrpoglHDIt --delete --progress \
--exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/var/run \
--exclude=/var/lock --exclude=/var/tmp --exclude=/var/backups \
--exclude=/var/cache --exclude=/var/tmp \
--exclude=/mnt/multimedia --exclude=/mnt/mp3 \
/ /mnt/multimedia/backup
</pre>It's also possible to use a <em>not_rsync</em> file, but I prefer this way. For future synchronization the only difference is the missing I parameter of rsync. Here what states the man page:
<pre>-I, --ignore-times          don't skip files that match size and time
    --size-only             skip files that match in size
    --modify-window=NUM     compare mod-times with reduced accuracy</pre>
In this way new synchronization will be more precise. Now a cronjob can be useful.
<h3>Upgrade</h3>
I'm now ready for the upgrade. I suggest a reading of <a href="http://debian.org/releases/stable/i386/release-notes/ch-upgrading.html">relase-notes </a> on debian.org site.

I modity /etc/apt/sources.list just to point on lenny repository:

<pre class="brush: bash;">
deb http://ftp.it.debian.org/debian/ lenny main
deb-src http://ftp.it.debian.org/debian/ lenny main
deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main
</pre>The next command starts session logging, just in case something goes wrong:

<pre class="brush: bash;">
script -t 2&gt;~/upgrade-lenny.time -a ~/upgrade-lenny.script
</pre>Packet list update

<pre class="brush: bash;">
aptitude update
</pre>app and aptitude upgrade, plus some dependencies

<pre class="brush: bash;">
apt-get install apt
</pre>Now I've got the first difference from relases-note, the previous command remove/upgrade/install a lot of packet. Asking in forums and mailinglists I noted that it happened to other people, so I go forward, crossing finger <img src='http://gabo.homelinux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  
I have to re-install aptitude through apt-get, since the last command removed it. After that I need an update

<pre class="brush: bash;">
aptitude install aptitude
</pre>Again a lot of packet removed, upgraded and installed.

<pre class="brush: bash;">
aptitude search &quot;?false&quot;
</pre>A minimal system upgrade:

<pre class="brush: bash;">
aptitude upgrade
</pre>And now the real upgrade. I don't need to upgrade X, so it's sufficient the following:

<pre class="brush: bash;">
aptitude dist-upgrade
</pre>At the end I tell lilo that it have to boot with the new 2.6.26-1 kernel

<pre class="brush: bash;">
lilo -v
</pre>After a deep reading of possible problem I proceed with the reboot:

<pre class="brush: bash;">
reboot
</pre>Here you are my new lenny-box <img src='http://gabo.homelinux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 

<pre class="brush: bash;">
g4b0@debian:~$ more /etc/debian_version
5.0
g4b0@debian:~$ uname -a
Linux debian 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686 GNU/Linux
g4b0@debian:~$
</pre>All information in this post is provided "as is" without warranty of any kind, use it at your own risk. Happy linuxing!

]]></content:encoded>
			<wfw:commentRss>http://gabo.homelinux.com/en/2009/03/aggiornamento-etch-lenny/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
