Unity officially supports the Linux version of UnityHub and Unity Editor, and users can install and run Unity on Linux systems for development. The following are the complete installation steps, including UnityHub, Unity Editor, and necessary dependencies.
1. System requirements
The Linux distributions officially supported by Unity are mainly Ubuntu 20.04+, but most Linux distributions based on Debian, Arch, Fedora, etc. can also run.
If you are using Debian/Arch/Fedora, you can make it compatible with the Ubuntu version of Unity by installing additional dependencies.
2. Install Unity Hub (official recommended method)
Unity Hub is an official management tool that can install, update and manage Unity versions.
Method 1: Use AppImage (official recommendation)
Download Unity Hub AppImage
wget https://public-cdn.cloud.unity3d.com/hub/prod/UnityHub.AppImage
Give execution permissions
chmod +x UnityHub.AppImage
Run Unity Hub
./UnityHub.AppImage
(Optional) Add Unity Hub to the system path
sudo mv UnityHub.AppImage /usr/local/bin/unityhub
Method 2: Use Snap (for Ubuntu)
If you are using Ubuntu or a Linux distribution that supports Snap, you can use Snap to install:
sudo snap install unity-hub --classic
3. Run Unity Hub and log in
Launch Unity Hub (if using AppImage, you need to manually run ./UnityHub.AppImage)
Log in to your Unity account (if you don’t have an account, you need to register one)
Activate Unity License (Free/Personal/Enterprise)
4. Install Unity Editor
In Unity Hub, click "Installs"
Click "Install Editor"
Select the required Unity version (the latest LTS version is recommended)
Select additional modules (such as Android/iOS/WebGL support)
Click "Install" to start the installation (may take some time)
5. Start Unity Editor
After successful installation, you can start Unity Editor through Unity Hub, or run it directly in the terminal:
unityhub
Or run it manually:
/opt/Unity/Editor/Unity
It is recommended to use Unity Hub to install Unity because it provides version management, license management, automatic update and other functions. If you encounter compatibility issues, you can use the manual installation method.