Linux Software Packages

The Haxe Foundation officially participates in the maintenance of Haxe and Neko packages for a number of popular Linux distributions. It is recommended to use those packages if available.

***WARNING***

You should NOT use any third-party installation script, e.g. OpenFL's, to install Haxe, because it is known to cause conflict, segfault, and other issues. If the official packages listed below doesn't work for any reason, open an issue at our issue tracker.

If you installed Haxe previously in any other way, and want to switch to using the packages, always remove the existing Haxe/Neko completely before doing so.

Ubuntu

Ubuntu, being a downstream project of Debian, inherits the Haxe and Neko Debian packages. However, due to the long release cycle of Ubuntu and Debian, it is very likely that those packages are outdated.

We recommend you to use our Personal Package Archive (PPA), ppa:haxe/releases, which provides the latest versions of Haxe and Neko for all the currently supported Ubuntu versions. To install Haxe and Neko using the PPA, run the commands as follows:

sudo add-apt-repository ppa:haxe/releases -y
sudo apt-get update
sudo apt-get install haxe -y
mkdir ~/haxelib && haxelib setup ~/haxelib

Neko will be installed as a dependency of Haxe.

Note that the PPA is also usable for Ubuntu based distributions, e.g. Linux Mint.

Debian

The Haxe Foundation continuously updates the Haxe and Neko packages in the Debian archive. However, due to the long release cycle of Debian, it is very likely that only the packages in the testing channel and the unstable (sid) channel are up-to-date.

To check the currently available versions in various channels, check the pages as follows:

To install the currently available versions for your system, simply run the commands as follows:

sudo apt-get install haxe -y
mkdir ~/haxelib && haxelib setup ~/haxelib

Neko will be installed as a dependency of Haxe.

To install the newer ones from the unstable channel, follow these steps:

  1. In /etc/apt/sources.list, add
    deb http://httpredir.debian.org/debian unstable main
  2. In /etc/apt/preferences.d/, create a new file named unstable (the name can be anything) with the content as follows:
    Package: *
    Pin: release a=unstable
    Pin-Priority: 100
    
    Package: haxe neko libneko*
    Pin: release a=unstable
    Pin-Priority: 999
    Our file gives the unstable channel a low priority (default priority is 500), such that the currently installed packages will not be upgraded using the unstable channel. It then states that we always prefer haxe, neko, and libneko* to be installed from the unstable channel. Consult the APT Preferences article for more details.
  3. Pull package index files from the newly added source:
    sudo apt-get update
  4. Install haxe (and neko):
    sudo apt-get install haxe -y

Fedora

The Haxe Foundation maintains the Haxe and Neko RPM packages in the Fedora repository. The packages are up-to-date most of the time. However, when a new version of Haxe is released, it will take a few days, up to 2 weeks, to push an updated package to the stable releases of Fedora. The update activities can be tracked in the Bodhi Fedora Update System.

To install the currently available versions for your system, simply run the commands as follows:

sudo dnf install haxe -y
mkdir ~/haxelib && haxelib setup ~/haxelib

Neko will be installed as a dependency of Haxe.

openSUSE

The Haxe Foundation maintains the Haxe and Neko RPM packages in the openSUSE:Factory repository. The packages are up-to-date most of the time. However, when a new version of Haxe is released, it will take a few days, up to 2 weeks, to be accepted by openSUSE:Factory.

To install the currently available versions of Haxe and Neko for your system, simply run the commands as follows:

sudo zypper install haxe
mkdir ~/haxelib && haxelib setup ~/haxelib

Neko will be installed as a dependency of Haxe.

To get the lastest Haxe version that may not available to openSUSE:Factory or an openSUSE release, you may use our devel project, named devel:languages:haxe, in the openSUSE Build Service.

To install Haxe and Neko from the devel project, visit the Haxe package page, click "Download package" at the top-right corner and follow the instructions there. Neko will also be installed as a dependency of Haxe.

Arch Linux

There are Haxe and Neko packages in the Arch Linux community repository. The Haxe Foundation will continue to help keep the packages up-to-date. However, when a new version of Haxe is released, it will take time to update the package, depended on the availability of the package maintainer.

To check the currently available versions, check the pages as follows:

To install the currently available versions of Haxe and Neko for your system, simply run the commands as follows:

sudo pacman -S haxe
mkdir ~/haxelib && haxelib setup ~/haxelib

Neko will be installed as a dependency of Haxe.