Skip to content

Instantly share code, notes, and snippets.

Last active June 16, 2022 11:15
  • Star 36 You must be signed in to star a gist
  • Fork 15 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save theodorosploumis/5414b3f3d44ba1b02549 to your computer and use it in GitHub Desktop.
Update phpstorm on Ubuntu linux.
#!/bin/bash -e
# IMPORTANT. My phpstom installation exists on /opt/phpstorm.
# Early Access program:
# For stable releases try:
if [ "$(whoami)" != "root" ]
echo "Sorry, you are not root."
exit 1
echo -n "Please enter the PhpStorm download url (eg "
read url
# Download file from url
echo "Downloading PhpStorm to ~/Desktop"
cd ~/Desktop
wget ${url} --no-check-certificate
tar -xzf ~/Desktop/PhpStorm*
rm ~/Desktop/PhpStorm*.tar.gz
# Remove old Phpstorm
echo "Removing old PhpStorm"
rm -rf /opt/phpstorm
# Copy new Phpstorm
echo "Copying new PhpStorm"
mv ~/Desktop/PhpStorm* /opt/phpstorm
# Finish
echo "New PhpStorm has been installed!"
Copy link

ghost commented Sep 16, 2017

Super Useful :)


Copy link

Why not use rsync ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment