Install PhpStorm with Snaps

Exciting news for Linux users: you can now use snaps to install PhpStorm builds. Snaps will update your app automatically, and you’ll always have a fresh PhpStorm build right out of the oven. Snaps are really easy to install and use. On Ubuntu 16.04 LTS or later, snaps come pre-installed. On other Linux distributions, you will need to install snaps first, as described here.

We currently distribute PhpStorm on the Edge and Stable channel where we store our EAP and stable builds, correspondingly. To install PhpStorm EAP via Snaps from the command-line, run the following command:

sudo snap install phpstorm --classic --edge

To install stable:

sudo snap install phpstorm --classic

To run PhpStorm, run this snap command: phpstorm

As an alternative, you can always use Toolbox App to install and update PhpStorm.

We would like to know what you think about snaps. Add your comments here or tweet @phpstorm. Your feedback is welcome!

This entry was posted in Cool Feature, Tutorial and tagged , , . Bookmark the permalink.
  • http://funivan.com/ Funivan

    Awesome.

  • Stephan Hochdörfer

    Nice.

  • https://ruchern.com ruchern

    This is great news for a CLI guy.

  • Kirill

    So how do I start it from desktop icon? Is it possible to add desktop icon?

    • Eugene Morozov

      Just start it via Command Line and click Tools | Create desktop entry.

    • Eugene Morozov

      I was not right about that. It turned out there’s no such a menu entry for a Snap installation.
      In fact, a desktop entry should be created automatically.
      Could you please check if you have one in /snap/phpstorm/current/meta/gui ?
      If you do, doesn’t it show up when you enter PhpStorm in Applications?

  • Danielx64

    Is it possible to select the version of phpstorm to install?

    • Eugene Morozov

      I was not right about that. It turned out there’s no such a menu entry for a Snap installation.
      In fact, a desktop entry should be created automatically.
      Could you please check if you have one in /snap/phpstorm/current/meta/gui ?
      If you do, doesn’t it show up when you enter PhpStorm in Applications?

    • Dmitry Tronin

      Not yet. Only latest version is distributed this way

  • Klaas Tammling

    Ok. I’ve used snap install phpstorm –classic and I don’t have any menu entry or command on the CLI to run phpstorm. So for some reason it is not really working.

    • Eugene Morozov

      Please check if you have a .desktop file created in /snap/phpstorm/current/meta/gui
      If you do – your DE must be not supporting Snapcraft.
      Meanwhile, you can start PhpStorm with /snap/bin/phpstorm
      You can add /snap/bin to $PATH to be able to run software installed with snap from Terminal.

  • Fezot

    I’m trying to update from 2017.3.3 to 2017.3.4 but snap can’t find the updates: “snap ‘phpstorm’ has no updates available” using “sudo snap refresh phpstorm”

    • Vladimir Luchansky

      Couldn’t reproduce this. What does ‘snap info phpstorm’ show? Did you try ‘sudo snap remove phpstorm’ and then install it again?

      • Fezot

        Thanks @Vladimir. It worked after removing and installing it again.

  • Вилы Выкидные
    • Eugene Morozov

      Does it persist? And can you install anything else via Snapcraft?

  • gene_wood

    @eugenemrzv:disqus, I notice you mention the existence of the .desktop file in the /snap/phpstorm/current/meta/gui directory in response to a few questions below. Is there something we should be doing with that file after installing the snap to make Ubuntu aware of it so that typing phpstorm in the launcher allows us to launch phpstorm?

    Also, related to that, when not using the .desktop file and instead just launching phpstorm from the command line, the icon that it uses (which must be embedded in the binary itself) is very low resolution.

    https://i.imgur.com/21ic3ht.png

    That’s what it looks like next to the other 128×128 icons from jetbrains. The low resolution icon also looks pretty fuzzy when switching applications.

    You may want to take the icon in /snap/phpstorm/current/bin/phpstorm.png and integrate it into the binary (or however Ubuntu divines an icon from a running binary)