wget the latest WordPress installed – pronto!

It’s so flippin’ fast! Forget about FTP-ing…

wget it

user@server:~$ wget http://wordpress.org/latest.tar.gz

This command will place the file in your current directory. You may plan on unpacking & installing in multiple directories, so you may want to cd to the parent directory of those locations. Plus, if you choose this method to get the next latest version, you can wget it in the same directory and override the previous version.

Copy it to your desired directory

user@server:~$ cp latest.tar.gz /path/to/your/directory;

Go to that directory

user@server:~$ cd /your/directory

Verify that it’s there

user@server:~/your/directory$ ls

Unpack the tar ball

user@server:~/your/directory$ tar -xvf latest.tar.gz

*Note: -xvf combines 3 options. -x extracts the file from the archive. -v verbosely lists the files processed. -f uses the archive file.

Verify that the wordpress directory is now there…

user@server:~/your/directory$ ls

Presto! Now just set up the mysql database, edit wp-config.php, and go to http://yourdomain.com/wordpress/wp-admin/install.php to complete the final steps.


5 Responses to “wget the latest WordPress installed – pronto!”

  • Drew says: Mar 1, 2013 at 10:50 am

    why not just combine steps 5 and 6? tar -xvzf latest.tar.gz

    • doug says: Mar 1, 2013 at 10:58 am

      wondering that myself... 5 & 6 are now combined.

  • Ted says: Nov 6, 2013 at 1:22 am

    hi, how transfer all files in "wordpress" to up level directory?

    • David Albert says: Jan 25, 2015 at 2:38 am

      mv wordpress/* . rmdir wordpress

      • David Albert says: Jan 25, 2015 at 2:42 am

        Note: those commands should go on separate lines, the wordpress blog editor is combining them after I submit the comment. command 1: mv wordpress/* . command 2: rmdir wordpress

Leave a Comment