<tt>download_and_compile.sh</tt> is a
[https://www.gnu.org/software/bash/ Bash ] script that takes care of downloading and compiling FlightGear from the Git repositories with just one command execution<ref name="just-one-command">Due to technical problems on the [https://sourceforge.net/ SourceForge] side, this is currently only true once you have an [[FGData]] clone. See [[User:Rominet|here]] for details.</ref> for both 32-bit and 64-bit [https://www.debian.org/ Debian]-based systems (Debian, [https://www.ubuntu.com/ Ubuntu], [https://devuan.org/ Devuan], [https://www.linuxmint.com/ Linux Mint], etc.). Pre-existing installed versions (if any) of FlightGear are not touched at all since the script downloads, builds and installs everything under the directory in which it is launched. You can choose between building all or only specific tools and applications. For RedHat-based systems such as Fedora and CentOS, you may want to check out [[CentOS]].
By default, <tt>download_and_compile.sh</tt> installs most dependencies with <tt>apt-get </tt> run under <tt>sudo</tt>. <ref name="note-on- changing-how-packages-are-installed">This can be changed with options <code>--package -manager</code> and <code>- -sudo</code> , or completely turned off with option <code>- pn</code> (see the output of <code>download_and_compile.sh - -help</code> for the list of available options).</ref> Other dependencies, either because they aren't available in the standard APT repositories, or because it was explicitly requested using the non-option arguments of <tt>download_and_compile.sh</tt>, are downloaded and compiled on the fly (this can be the case for [[PLIB]], [[Simgear]] and [[OpenSceneGraph]], for instance—depending on the arguments passed to <tt>download_and_compile.sh</tt>).
For hints on using
a RPM-based distribution like CentOS, please see [[CentOS]].
Please also see [[ Superbuild]] .
=== Update Available ===