Update: Since this article is a few years old, we decided to put together an updated version of this article on how to install the latest version of Unity on Fedora.
1. Download the latest Unity package
It’s recommended to do this from shell, so open a shell and run the following:
2. Make the package executable and run it
Once the download is complete, make the file executable.
sudo chmod 755
3. Launch Unity
If all goes well, Unity will launch and you’ll be greeted by a friendly login screen. However, many people seem to be missing a dependency of two. The most common error after installing Unity is the following:
./Unity: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory
After digging around, I found the following helpful post on the Unity 3D forums. To resolve these dependencies, install the following postgres libraries like so:
sudo dnf install postgresql-libs
Unity should then launch. However, you may run into another snag which, instead of seeing the splash/login screen, you will only see a large grey box. This seems to be an issue with npm. To resolve this, try installing the following package:
sudo dnf install nodejs npm
After installing this package, Unity launched without error. Great!
Mondevelop vs Visual Studio Code
In order to write and edit C# scripts, you’ll need a code editor installed alongside Unity. I personally found Monodevelop too be way too resource heavy for my environment so I went with Visual Studio Code (aka VSCode). Both can be easily installed on Fedora 24:
Install Visual Studio Code
You can get the Visual Studio Code repository or use wget like so:
sudo dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/mosquito/vscode/repo/fedora-24/mosquito-vscode-fedora-24.repo
Once you’ve added the repo, install VSCode using dnf:
sudo dnf install vscode
If you are going with Monodevelop, you can install it with dnf like so:
sudo dnf install monodevelop
Depending which editor you choose, you’ll need to let Unity know about it. From the menu, select Edit/Preferences/External Tools and browse to the executable that you which to launch (unity-editor-5.4.0p1/MonoDevelop/bin/monodevelop or /usr/bin/vscode). Your path may differ slightly.