# Installing the CXL-CLI Package on Linux

The `cxl-cli` utility is available in many Linux distribution package repositories.  This approach is the easiest to use and maintain, compared with installing cxl-cli from source code. The cxl-cli utility is maintained in the [ndctl GitHub repository](https://github.com/pmem/ndctl).

{% tabs %}
{% tab title="Fedora" %}
1\) Query the repository to confirm if the cxl-cli package is available:

```
dnf search cxl-cli 
```

2\) Install the cxl-cli package

```
dnf install cxl-cli
```

{% endtab %}

{% tab title="RHEL & CentOS" %}
The cxl-cli package is available on CentOS, RHEL, RHEL for SAP HANA 7.0 or later.&#x20;

1\) Query the repository to identify if the cxl-cli package is available:

```
yum search cxl-cli
- or -
dnf search cxl-cli
```

2\) Install cxl-cli package

```
yum install cxl-cli
- or -
dnf install cxl-cli
```

{% endtab %}

{% tab title="SLES & OpenSUSE" %}
The cxl-cli package is available for OpenSUSE, SUSE Linux Enterprise Server (SLES), and SLES for SAP HANA v12.4 or later.

1\) Query the repository to identify if ndctl and daxctl are available:

```
sudo zypper search cxl-cli
```

2\) Install the cxl-cli package

```
sudo zypper install cxl-cli 
```

{% endtab %}

{% tab title="Ubuntu" %}
The cxl-cli packlage are available on Ubuntu 18.10 (Cosmic Cuttlefish) or later.

1\) Query the repository to identify if the cxl-cli package is available:

```
apt search cxl-cli
```

2\) Verify if the cxl-cli package is currently installed and check the version

```
apt list --installed cxl-cli
```

3\) Install the cxl-cli package or update an installed package

```
sudo apt install cxl-cli
```

{% endtab %}

{% tab title="Debian" %}
1\) Query available versions in configured repositories:

```
apt policy cxl-cli
```

2\) Query the repository to identify if cxl-cli is available:

```
apt search cxl-cli
```

3\) Verify if the cxl-cli package is currently installed and check the version

```
apt list --installed cxl-cli
```

4\) Install the cxl-cli package or update an installed package

```
sudo apt install cxl-cli
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pmem.io/ndctl-user-guide/v72.1/installing-ndctl/installing-the-cxl-cli-package-on-linux.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
