Get the latest WordPress version available:
wget http://wordpress.org/latest.tar.gz
Uncompress it:
tar xfz latest.tar.gz
Delete the wp-admin and wp-includes directories:
rm -rf ./wp-includes/
rm -rf ./wp-admin/
Go to the wordpress directory:
cd wordpress/
Now, it’s time to copy the downloaded files to your existing WP install, by overwriting old files:
cp -rpf -f * ../
Once done, come back to the WordPress directory and remove the downloaded files:
cd ..
rm -rf ./wordpress/
rm -f latest.tar.gz
zip
sudo apt-get install p7zip
7z x plik.zip