Updating WordPress via Bash

Updating WordPress via Bash

Get the WordPress Package File and download to current directory

wget http://en-gb.wordpress.org/latest-en_GB.tar.gz

Unzip the Package File in the directory

tar xfz latest-en_GB.tar.gz

Copy the contents of the WordPress directory to the parent directory.

cp -r wordpress/* ./

Remove the empty WordPress Folder

rm -rf wordpress

Remove the Package File

rm -f latest-en-GB.tar.gz

Comments are closed.