Use F# on Linux

Option 1: Install from your Linux distribution’s package manager

When being used as .NET language, F# requires a .NET runtime. On Linux this runtime is Mono or .NET Core.
Most Linux distributions include a version of Mono in their repositories. However, these versions
are typically pretty old. Therefore, it is highly recommended that you add the official Mono package
repository to your package manager, as described below. This makes it easy to get updates or uninstall, if
required.

Note that if you are installing to a private prefix, follow these instructions and ensure LD_LIBRARY_PATH includes the “lib” directory of that prefix location and PKG_CONFIG_PATH includes the “lib/pkgconfig” directory of that prefix location, e.g.

Build and install the F# Compiler (open edition) from source. If using a VM or other memory-constrained system, be aware that errors during compilation may be due to insufficient memory (in particular error 137).

Explore (and contribute to) the collection of .NET applications and libraries in the Nixpkgs GitHub repo

Highly recommended: Install a smart editor

Like other strongly typed languages, F# can benefit tremendously from an editor that has support
for the language. This makes smart auto-completion and compiling while you edit possible, which
increases the discoverability of features and programmer productivity in general.