> For the complete documentation index, see [llms.txt](https://px4.gitbook.io/px4-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://px4.gitbook.io/px4-user-guide/development/advanced/dev_env_unsupported/dev_env_linux_arch.md).

# Arch Linux

:::warning This development environment is [not supported](/px4-user-guide/development/advanced/dev_env_unsupported.md). See [Toolchain Installation](/px4-user-guide/development/getting_started/dev_env.md) for information about the environments and tools we do support! :::

The PX4-Autopilot repository provides a convenient script to set your Arch installation up for PX4 development: [Tools/setup/arch.sh](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/setup/arch.sh).

The script installs (by default) all tools to build PX4 for NuttX targets and run simulation with *jMAVsim*. You can additionally install the *Gazebo-Classic* simulator by specifying the command line argument: `--gazebo`.

![Gazebo on Arch](https://4155462212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LArEa7z2SPawfl3HpCD%2Fuploads%2Fgit-blob-ea3d257b894301f241ea01bb2e43474e26b90eba%2Farch-gazebo.png?alt=media)

:::note The instructions have been tested on [Manjaro](https://manjaro.org/) (Arch based distribution) as it is much easier to set up than Arch Linux. :::

To get and run the scripts, do either of:

* [Download PX4 Source Code](/px4-user-guide/development/getting_started/building_px4.md) and run the scripts in place:

  ```
  git clone https://github.com/PX4/PX4-Autopilot.git
  bash PX4-Autopilot/Tools/setup/arch.sh
  ```
* Download just the needed scripts and then run them:

  ```sh
  wget https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/Tools/setup/arch.sh
  wget https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/Tools/setup/requirements.txt
  bash arch.sh
  ```

The script takes the following optional parameters:

* `--gazebo`: Add this parameter to install Gazebo from the [AUR](https://aur.archlinux.org/packages/gazebo/). :::note Gazebo gets compiled from source. It takes some time to install and requires entering the `sudo` password multiple times (for dependencies). :::
* `--no-nuttx`: Do not install the NuttX/Pixhawk toolchain (i.e. if only using simulation).
* `--no-sim-tools`: Do not install jMAVSim/Gazebo (i.e. if only targeting Pixhawk/NuttX targets)
