<commit_before>.. _installation_linux:

Development Environment Setup on Linux
######################################

.. important::

   This section only describes OS-specific setup instructions; it is the first step in the
   complete Zephyr :ref:`getting_started`.

This section describes how to set up a Zephyr development environment on the
following Linux distributions:

* Ubuntu 16.04 LTS or 18.04 LTS 64-bit
* Fedora 28 64-bit
* Clear Linux
* Arch Linux

Where needed, instructions are given which only apply to specific Linux
distributions.

Update Your Operating System
****************************

Ensure your host system is up to date before proceeding.

On Ubuntu:

.. code-block:: console

   sudo apt-get update
   sudo apt-get upgrade

On Fedora:

.. code-block:: console

   sudo dnf upgrade

Note that having a newer version available for an installed package
(as reported by ``dnf check-update``) does not imply a subsequent
``dnf upgrade`` will install it, because it must also ensure dependencies
and other restrictions are satisfied.

On Clear Linux:

.. code-block:: console

   sudo swupd update

On Arch Linux:

.. code-block:: console

   sudo pacman -Syu<commit_msg>doc: Add anchor in Getting Started<commit_after>.. _installation_linux:

Development Environment Setup on Linux
######################################

.. important::

   This section only describes OS-specific setup instructions; it is the first step in the
   complete Zephyr :ref:`getting_started`.

This section describes how to set up a Zephyr development environment on the
following Linux distributions:

* Ubuntu 16.04 LTS or 18.04 LTS 64-bit
* Fedora 28 64-bit
* Clear Linux
* Arch Linux

Where needed, instructions are given which only apply to specific Linux
distributions.

Update Your Operating System
****************************

Ensure your host system is up to date before proceeding.

On Ubuntu:

.. code-block:: console

   sudo apt-get update
   sudo apt-get upgrade

On Fedora:

.. code-block:: console

   sudo dnf upgrade

Note that having a newer version available for an installed package
(as reported by ``dnf check-update``) does not imply a subsequent
``dnf upgrade`` will install it, because it must also ensure dependencies
and other restrictions are satisfied.

On Clear Linux:

.. code-block:: console

   sudo swupd update

On Arch Linux:

.. code-block:: console

   sudo pacman -Syu

.. _linux_requirements:
{'fraction_non_alphanumeric': 0.11238720262510254, 'fraction_numerical': 0.011484823625922888, 'mean_word_length': 4.134736842105263, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5617397', 'n_tokens_mistral': 699, 'n_tokens_neox': 624, 'n_words': 307}