温馨提示×

phpstorm ubuntu版最新版

小樊
48
2025-10-21 05:34:02
栏目: 编程语言

PHPStorm for Ubuntu: Latest Version Installation & Update Guide

To get the latest version of PHPStorm on Ubuntu, you can choose from three reliable methods—Snap (recommended for automatic updates), Manual Download (official but requires manual updates), or JetBrains Toolbox (centralized tool management). Below are detailed steps for each approach:

1. Install/Update via Snap (Automatic Updates)

Snap is a package manager that simplifies installation and ensures you always have the latest version.

  • Prerequisites: If Snap is not installed, run:
    sudo apt update && sudo apt install snapd
    
  • Install PHPStorm: Execute the following command to install the latest version:
    sudo snap install phpstorm --classic
    
  • Update PHPStorm: Snap automatically checks for updates. To manually refresh, run:
    sudo snap refresh phpstorm
    

This method is ideal for users who want hassle-free updates.

2. Manual Download & Update (Official Method)

For users who prefer direct control over the installation files:

  • Download the Latest Version: Visit the JetBrains PHPStorm download page and get the .tar.gz archive for Ubuntu.
  • Extract & Install:
    1. Navigate to the download directory in Terminal:
      cd ~/Downloads
      
    2. Extract the archive to /opt (a standard location for applications):
      sudo tar -xvzf phpstorm-*.tar.gz -C /opt/
      
    3. Create a symbolic link for easy command-line access:
      sudo ln -s /opt/phpstorm/bin/phpstorm.sh /usr/local/bin/phpstorm
      
  • Launch PHPStorm: Run phpstorm in Terminal, or find it in the application menu.
  • Update Manually: When a new version is released, repeat the download and extraction steps, replacing the old /opt/phpstorm folder with the new one.

3. JetBrains Toolbox (Centralized Management)

The Toolbox App lets you manage all JetBrains products (including PHPStorm) from a single interface, with automatic updates.

  • Download Toolbox: Get it from the JetBrains website.
  • Install PHPStorm: Open Toolbox, click the “+” icon, and select “Install PHPStorm”. Choose the latest version.
  • Update Automatically: Toolbox notifies you of updates and installs them with one click.

Key Notes for All Methods

  • Compatibility: Ensure your Ubuntu version is supported (18.04 LTS, 20.04 LTS, 22.04 LTS, or 22.10).
  • Java Requirement: PHPStorm requires JDK 11 or higher. Install it via:
    sudo apt install openjdk-11-jdk
    
  • Activation: Use a valid license (purchased or trial) to unlock the full features. Avoid pirated copies to prevent security risks.

By following these methods, you can easily install or update PHPStorm to the latest version on Ubuntu, ensuring access to the newest features and bug fixes.

0