Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Update phpstorm on Ubuntu linux.
#!/bin/bash -e
# IMPORTANT. My phpstom installation exists on /opt/phpstorm.
# IMPORTANT. Run with sudo!
# Early Access program: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program
# For stable releases try: https://data.services.jetbrains.com/products/download?code=PS&platform=linux
echo -n "Please enter the PhpStorm download url (eg http://download.jetbrains.com/webide/PhpStorm-EAP-141.690.tar.gz): "
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!"
@jaylinski

This comment has been minimized.

Copy link

commented Dec 13, 2015

thanks, very useful 👍

@mcorsi

This comment has been minimized.

Copy link

commented Jan 11, 2016

What about all your old settings?

@petersonpeter

This comment has been minimized.

Copy link

commented Mar 20, 2016

it saves the settings in your home folder called .WebIde100

@mofakhamr

This comment has been minimized.

Copy link

commented Aug 24, 2016

rm ~/Desktop/PhpStorm*.tar.gz
would be better than
rm ~/Desktop/PhpStorm*
imho

@Pherserk

This comment has been minimized.

Copy link

commented Dec 4, 2016

love it

@VasiliyRusin

This comment has been minimized.

Copy link

commented Dec 16, 2016

Maybe this is be better idea

if [ "$(whoami)" != "root" ]
then
echo "Sorry, you are not root."
exit 1
fi

than # IMPORTANT. Run with sudo!

And also, for linux save in /tmp will be correctly than save temporary file on desktop.

@spirit-q2

This comment has been minimized.

Copy link

commented Mar 7, 2017

what about any additional installed plugins?

@olivertappin

This comment has been minimized.

Copy link

commented Jul 20, 2017

A simple, similar script to update to the latest version of PhpStorm on Ubuntu (without having to type in a URL): https://gist.github.com/olivertappin/e5920e131db9a451c91aa6e2bc24dc40

@zabidok

This comment has been minimized.

Copy link

commented Sep 13, 2017

New similar script for install or update(auto) jetbrains products like phpstorm, webstorm and other. + java + non latin hotkeys fixes
https://gist.github.com/zabidok/8418c4f679741f585ac9ce90b16fb8a5

@carlrondoni

This comment has been minimized.

Copy link

commented Sep 16, 2017

Super Useful :)

THANKS!

@nvanheuverzwijn

This comment has been minimized.

Copy link

commented Jul 5, 2018

Why not use rsync ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.