I recently found a great article about upgrading WordPress from the command line. If you’re familiar with a command line interface at all, it’s by far the simplest way to upgrade your WordPress install.
You can apply the same method to upgrading your WordPress plugins.
- Log in to your web server and
cdto the WordPress plugins directory:
cd httpdocs/wp-content/plugins
Your syntax may vary depending on your server. - Download the new version of the plugin. In my case I’m upgrading the Social Homes plug in.
wget http://downloads.wordpress.org/plugin/social-homes.2.3.zip - Back up your current plugin directory
tar -zcvf social-homes.tar.gz social-homes - Unzip the zip file of the new version
unzip social-homes.2.3.zip- You’ll be prompted to confirm you want to overwrite the files in the social-homes directory
replace social-homes/COPYING.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: - Type ‘A’ and hit return to overwrite the old files with the new ones.
- You’ll be prompted to confirm you want to overwrite the files in the social-homes directory
- Log into WordPress to make sure the upgrade worked by going to the “Plugins” panel in the admin area.
- Clean up your mess
rm social-homes.2.3.zip
rm social-homes.tar.gz
You’re done. You’ve successfully upgraded your plugin. This process can be much faster than downloading the plugin to your local directory, deactivating it in WordPress and uploading the new one. Especially if the plugin is a large one.