# Ускоряем DNF

{% hint style="info" %}
**DNF** - *пакетный менеджер для дистрибутива Fedora Linux и его производных. Как, например apt для Debian/Ubuntu или pacman для Arch Linux. В Fedora нельзя использовать другие пакетные менеджеры, только dnf.*
{% endhint %}

<figure><img src="/files/9GgiBjcF6RA5xjlXJcmX" alt=""><figcaption><p>Ускоряем dnf на Fedora Linux</p></figcaption></figure>

В терминале (CTRL+ALT+T) выполняем:

```bash
sudo gnome-text-editor /etc/dnf/dnf.conf
```

и добавляем в конец файла следующие параметры:

```bash
fastestmirror=True
max_parallel_downloads=10
defaultyes=True
keepcache=True

```

{% hint style="warning" %}
Для жителей РФ и СНГ параметр `fastestmirror=True` нужно попробовать включить и отключить и посмотреть как будет лучше. Некоторые пользователи заметили, что dnf пытается подключаться к серверам Yandex, а какие-то пакеты там могут отсутствовать и поэтому могут сыпаться различные ошибки.
{% endhint %}

Далее выполняем:

```bash
sudo dnf autoremove && sudo dnf clean all
```

### Добавляем автоматическое обновление зеркал в фоне (по идеи должно ускорить dnf)

```bash
sudo dnf install dnf-automatic
```

```bash
sudo systemctl enable dnf-automatic.timer
```


---

# 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://plafon.gitbook.io/fedora-zero/fedora-zero/start/dnf.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.
