EDIT: Don’t follow this, a properly set up installation will keep itself updated
Updating wordpress:
mkdir ~/temp cd ~/temp/ wget http://wordpress.org/latest.tar.gz tar -xzvf latest.tar.gz cd /var/www/html/ sudo rm -Rf wp-admin/ sudo rm -Rf wp-includes/ sudo cp -R ~/temp/wordpress/wp-admin/ . sudo cp -R ~/temp/wordpress/wp-includes/ . rsync -vcrultO ~/temp/wordpress/wp-content/ wp-content/ sudo chgrp -R apache . sudo chown -R apache . rsync -nvcrultO --exclude 'wp-content' --exclude 'wp-includes' --exclude 'wp-admin' ~/temp/wordpress/* .