WORDPRESS 2.7 upgrade IN ONE LINE

author
0 minutes, 58 seconds Read

BadPoetry WordPress 2.7 has just been released and features a complete interface overhaul. Hack a Day runs on WordPress MU held by WordPress.com, so we got this update last week. We run common WordPress.org on all of our personal blogs though. We recommend it because it’s free, has a enormous userbase, and if you hold it yourself, you can do whatever you want with it.

To make the upgrade process as simple as possible (and for the sheer rush of ‘rm -rf’), we utilize a one line command.

$ curl -o “wp.zip” && unzip wp.zip && rm -rf ./wordpress/wp-content/ && cp -r ./wordpress/* ~/www/

curl downloads the latest version from wordpress. unzip unpacks all of the data into a directory called ‘wordpress’. rm -rf removes everything in the ‘wp-content’ directory. Otherwise, you will overwrite your images, themes, and plugins. cp -r copies everything to your http file root, overwriting the previous install.

Naturally, you should back up your current install and database beforehand. We tend to utilize the one-liner with reckless abandon. If you’re wondering about the terseness, it was designed to in shape inside the 140 character limit of Twitter.

[Thanks, Chris Finke]

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *