Updated: 28 September 2026 · Applies to: dnf 4 on AlmaLinux and Rocky Linux 9 and 10 and RHEL 9 and 10; apt on Ubuntu 24.04 and 26.04 and Debian 13

Package updates can fill a slow or shared network link, for example on a branch office line or when many servers update at the same time. Both dnf and apt can limit their download speed. This replaces the old yum throttle setting for CentOS; dnf keeps the same option name. We measured the effect on AlmaLinux 10 and Debian 13: an 8 MB package took 3 seconds without a limit and 17 seconds with a 500 KB/s limit.

AlmaLinux, Rocky Linux and RHEL (dnf)

For a single command:

dnf --setopt=throttle=500k upgrade

Permanently, add the option to the [main] section of /etc/dnf/dnf.conf:

[main]
throttle=500k
  • The value is in bytes per second. Use k, M or G for larger units: 500k is 500 KB/s, 2M is 2 MB/s. 0 (the default) means no limit.
  • You can also give a percentage of the bandwidth option, for example bandwidth=10M and throttle=50%.
  • The same options work in a single repository's section in /etc/yum.repos.d/, to limit only that repository.
  • Keep the limit well above dnf's minrate (1000 bytes per second by default): dnf gives up on downloads that stay slower than minrate for the timeout period (30 seconds).

Ubuntu and Debian (apt)

For a single command:

apt-get -o Acquire::http::Dl-Limit=500 upgrade

Permanently, create /etc/apt/apt.conf.d/90-download-limit:

Acquire::http::Dl-Limit "500";

The value is in kilobytes per second. In our test the same setting also limited downloads from https:// mirrors.

Other ways to reduce update traffic

  • Spread automatic updates over time so that many servers do not download at once. The apt-daily timers on Ubuntu and Debian and the dnf-automatic timer already start at a random time within a window; for dnf-automatic you can add a further random delay with random_sleep in /etc/dnf/automatic.conf.
  • For many servers in one location, run a local mirror or caching proxy, so each package crosses the slow link only once.
  • Download in advance with dnf upgrade --downloadonly or apt-get upgrade --download-only at a quiet time, and install later.

Official documentation: dnf.conf reference and apt.conf manual.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket