> For the complete documentation index, see [llms.txt](https://docs.synteq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.synteq.com/gpu-vds/drivers/installing-drivers/installing-nvidia-drivers/installing-nvidia-drivers-on-centos-based-os.md).

# Installing NVIDIA drivers on CentOS based OS

##

## What are Drivers?

A driver is a piece of software that acts as a translation layer between the applications & OS running on your computer and the physical hardware present in the system. By default when you install Almalinux using one of our templates on your GPU VDS, you may notice that the GPU doesn't show up on your applications. To get Almalinux & your applications to detect your GPU, you'll need to install the relevant drivers for it.

## Installing Drivers

### 1. Log in to your VPS as root via SSH

### 2. Detecting the GPU

In your terminal, run the following command:

```
$ lshw -C display
```

The output should have a line with Nvidia on it with the generation of your GPU.

<figure><img src="/files/9qNHJcQLcUXxjMea0etY" alt=""><figcaption></figcaption></figure>

### 3. Enabling NVIDIA Repository

Run the following command to enable the NVIDIA repository.

```
$ dnf install almalinux-release-nvidia-driver
```

### 4. Install the driver

First, install the `nvidia-detect` package to see and run it.

```
$ sudo dnf install nvidia-open nvidia-driver-cuda -y
```

### 5. Reboot your VPS

Now, Reboot your VPS with the following command.

```
reboot
```

### 6. Verify the Installation

To verify that the drivers are properly installed, run the following command:

```
nvidia-smi
```

You should see an output like this:

<figure><img src="/files/EEUyL2OWxzQNim4UNtZu" alt=""><figcaption></figcaption></figure>

And done! You've successfully installed NVIDIA Drivers on your Almalinux VPS.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.synteq.com/gpu-vds/drivers/installing-drivers/installing-nvidia-drivers/installing-nvidia-drivers-on-centos-based-os.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
