WordPress Upgrade on a dedicated Linux Box

After looking around and seeing more people wrestling with automatic WordPress updates
on dedicated machines. I figured to document my quick hack out to make sure I won’t forget
next time here goes.
upgrading existing WordPress to latest version our way on Debian Squeeze,  fast and easy

original install is from Debian Squeeze package and is setup their way
it puts the config-yourhost.php script in /etc/wordpress

#rm -r /usr/share/wordpress 

// remove the original directory or follow every single error file and delete the file it errors on.

download and install latest version from wordpress.org

change user and group

#chown -R www-data:www-data /usr/share/wordpress
#chmod -R 750 /usr/share/wordpress 

symbolic link wp-config.php to /etc/wordpress/config-yourhost.php

# ln -s wp-config.php  /etc/wordpress/config-yourhost.php

Let me know if there is a better way to achieve the same on a dedicated  GNU/Linux Host

Comments and advice are welcome as always.