Update wordpress on the command line

Just for my backup, login to the wordpress server, and change to the root of where you have wordpress living, I was lazy and chose the default CENTOS apache directory. .. code-block:

cd /var/www/html/

Get the latest and greatest. .. code-block:

wget http://wordpress.org/latest.tar.gz

Unpack .. code-block:

tar xf latest.tar.gz

And start the scary stuff ;-), when moving just say yes and all should be ok. cd wordpress-blog/ .. code-block:

rm -rf wp-admin/ wp-includes/
mv ../wordpress/* .

And you’re done.