How to Install Unity in Linux
Unity is a cross-platform game engine developed by Unity Technologies, first announced and released in June 2005 at Apple Worldwide Developers Conference as a Mac OS X game engine. The engine has since been gradually extended to support a variety of desktop, mobile, console and virtual reality platforms. It is particularly popular for iOS and Android mobile game development and is considered easy to use for beginner developers and is popular for indie game development.
The engine can be used to create three-dimensional (3D) and two-dimensional (2D) games, as well as interactive simulations and other experiences.
There are four things to install and configure:
- Unity Hub
- .NET Core
- Mono
- External Script Editor
Install Unity Hub
Download the AppImage from here. Move it to a convenient location and set it executable:
Give run permission, double click to run! No installation required!
chmod +x Downloads/UnityHub.AppImage
You can now run Unity Hub to install Unity.
It is important to note that you will need a Unity ID before installing.
You can now run Unity Hub to install Unity.
It is important to note that you will need a Unity ID before installing.
Now you can install Unity, remember to select the Modules you need:
Install .NET Core
Debian 11
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
If you are using Debian 10 or 9, you just need to change the version number in the link below.
Open a terminal and run the following commands:
wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don’t need to install the corresponding runtime. To install the .NET SDK, run the following commands:
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-6.0
RHEL or Fedora or CentOS
Install .NET 6.0 and all of its dependencies:
sudo yum install dotnet-sdk-6.0 -y
Verification steps
Verify the installation:
dotnet --info
The output returns the relevant information about the .NET installation and the environment.
Ubuntu 22.04
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
If you are using Ubuntu 20.04 or 21.10, you just need to change the version number in the link below.
Open a terminal and run the following commands:
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don’t need to install the corresponding runtime. To install the .NET SDK, run the following commands:
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-6.0
Arch Linux
In Arch Linux, You just run the following commands:
sudo pacman -Syu donet-sdk
Install Mono
Ubuntu
- Add the Mono repository to your system
The package repository hosts the packages you need, add it with the following commands.
Note: the packages should work on newer Ubuntu versions too but we only test the ones listed below.
Ubuntu 20.04
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
Ubuntu 18.04
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
Ubuntu 16.04
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https ca-certificates
echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
- Install Mono
sudo apt install mono-devel
Fedora
- Add the Mono repository to your system The package repository hosts the packages you need, add it with the following commands in a root shell.
Note: we’re using the CentOS/RHEL repositories on Fedora.
Fedora 29 and later (x86_64)
rpm --import "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
su -c 'curl https://download.mono-project.com/repo/centos8-stable.repo | tee /etc/yum.repos.d/mono-centos8-stable.repo'
dnf update
Fedora 28 (x86_64)
rpm --import "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
su -c 'curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repo'
dnf update
- Install Mono
dnf install mono-devel
Arch Linux
In Arch Linux, you just need to run the following code to install:
sudo pacman -Syu mono
Install External Script Editor
In Linux, the recommended external editor is Visual Studio Code or Jetbrains Rider.
Install Visual Studio Code
Follow this help document to install
After that install and enable the C# extension in Visual Studio Code.

Jetbrains Rider
Follow this help document to install
After that set the external script editor in Unity->Edit->Preferences