Here’s a really quick way to get the latest version of WordPress and you don’t even need to open a browser. We’re going to do this all from the terminal.
This is really helpful when you’re starting a new site, just grab the newest version of WordPress then get going. And you can do that in just a few steps and a few seconds.
cd into the directory where you want to download WordPress.
You can always find the latest version of the WordPress install at wordpress.org
curl -O http://wordpress.org/latest.tar.gz
Don’t forget the
-O otherwise the file is going to download to your terminal and it’s going to do things you don’t want it to.
Now that we have the file, let’s extract it:
tar -xzvf latest.tar.gz
-xzvf gobble-dee is just telling tar what to do with the file.
-z because this is a gzip file (.gz)
-v verbose which will output information about the files that are being extracted. Not necessary, but nice to have.
-f for file
That’s it. Now you have the newest version of WordPress ready to go for your new website.