github.com/inspektor-gadget/inspektor-gadget@v0.28.1/docs/getting-started/install-linux.md (about)

     1  ---
     2  title: Installing on Linux
     3  weight: 20
     4  description: >
     5    How to install Inspektor Gadget on Linux
     6  ---
     7  
     8  <!-- toc -->
     9  - [Installing `ig`](#installing-ig)
    10    * [Install a specific release](#install-a-specific-release-1)
    11    * [Compile from source](#compile-from-source-1)
    12  - [Experimental features](#experimental-features)
    13  <!-- /toc -->
    14  
    15  ## Installing `ig`
    16  
    17  The [`ig`](../ig.md) tool can be built and installed
    18  independently. The result is a single binary (statically linked) that can be
    19  copied to a Kubernetes node or any host to trace its containers.
    20  
    21  ### Install a specific release
    22  
    23  It is possible to download the asset for a given release and platform from the
    24  [releases page](https://github.com/inspektor-gadget/inspektor-gadget/releases/).
    25  
    26  For instance, to download the latest release for linux-amd64:
    27  
    28  ```bash
    29  $ IG_VERSION=$(curl -s https://api.github.com/repos/inspektor-gadget/inspektor-gadget/releases/latest | jq -r .tag_name)
    30  $ IG_ARCH=amd64
    31  $ curl -sL https://github.com/inspektor-gadget/inspektor-gadget/releases/download/${IG_VERSION}/ig-linux-${IG_ARCH}-${IG_VERSION}.tar.gz | sudo tar -C /usr/local/bin -xzf - ig
    32  $ ig version
    33  ```
    34  
    35  ### Compile from source
    36  
    37  `ig` is built using a Docker container relying on [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx), so you don't have to worry
    38  about installing dependencies:
    39  
    40  ```bash
    41  $ make ig
    42  $ sudo cp ig /usr/local/bin/
    43  ```
    44  
    45  ## Experimental features
    46  
    47  Inspektor Gadget has some experimental features disabled by default. Users can enable those
    48  features, however they don't provide any stability and could be removed at any time.
    49  
    50  Experimental features can be enabled in `ig` by using the `IG_EXPERIMENTAL` env variable.
    51  
    52  ```bash
    53  $ sudo IG_EXPERIMENTAL=true ig trace exec
    54  INFO[0000] Experimental features enabled
    55  ...
    56  
    57  # pass -E if using export and sudo
    58  $ export IG_EXPERIMENTAL=true
    59  $ sudo -E ig trace exec
    60  INFO[0000] Experimental features enabled
    61  ...
    62  ```
    63