Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Download and install the latest version of PhpStorm for Ubunti
#!/bin/bash
if [ "$(whoami)" != "root" ]
then
echo "Sorry, you are not root."
exit 1
fi
echo "Downloading the latest PhpStorm to /tmp"
cd /tmp
curl -Lo PhpStorm.tar.gz "https://data.services.jetbrains.com/products/download?code=PS&platform=linux"
tar -xzf /tmp/PhpStorm.tar.gz
rm /tmp/PhpStorm.tar.gz
echo "Removing old PhpStorm"
rm -rf /opt/phpstorm
echo "Copying new PhpStorm"
mv /tmp/PhpStorm* /opt/phpstorm
echo "New PhpStorm has been installed"
@Jekis

This comment has been minimized.

Copy link

Jekis commented Aug 11, 2017

Thank you

@mbodalova

This comment has been minimized.

Copy link

mbodalova commented Aug 17, 2017

Thanks, it works

@zabidok

This comment has been minimized.

Copy link

zabidok 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

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.