Introduction
Ubuntu PhpStorm does not update automatically. To update, you need to do about the same steps as when installing it. It must be downloaded, unpacked in a new folder and run from there.
To make the IDE update easier to perform, I wrote github gist . This is the file that will do the routine work for you.
Update
- Based on gist, create a file
update-phpstorm.sh - Make the file executable
chmod +x update-phpstorm.sh - Run the update
sudo ./update-phpstorm.sh
You can remove your previous version of PhpStorm if it was not in the /opt/phpstorm . This will need to be done only once. In subsequent updates, the script will automatically delete the previous version from the /opt/phpstorm .
Explanation of the script
- The script will download the latest version of the editor.
- Removes the old version. (The settings will not be lost, as they are stored in the user's home directory)
- Unpack new version
- Download java-agent that fixes the problem of hot keys in the Russian keyboard layout.
- Updates the
phpstorm64.vmoptions file, which registers the launch of the above agent and changes the parameters of memory usage. (If you have a non-64-bit OS, correct the phpstorm64.vmoptions file name on phpstorm64.vmoptions in the phpstorm.vmoptions ) - A program icon will be created for running.
Launch
If you are using Unity, then you just have to open Dash and search for PhpStorm in the search.
check updates, does it say you need to upgrade? if not, then everything was updated - Vasily Barbashev