DNF or Dandified Yum is the next generation version of the Yellowdog Updater, Modified (yum), a package manager for RPM-based distributions.
Questions tagged [dnf]
59 questions
9
votes
2 answers
centos 7.4 can not install `dnf`from epel
It is so weird, I have a centos7 VM box. Try to install dnf because it is a dependency of another package.
Most instructions on internet is like this:
sudo yum install epel-release
sudo yum install dnf
But nothing installs. No package dnf…

Reed
- 287
- 1
- 3
- 10
6
votes
2 answers
Ansible Centos 8 dnf module "module" switch missing?
I'm trying to use the dnf module of Ansible with the module switch to install PHP 7.4 from the remi repo.
I'm doing this as a command, as I can't get it to work using Ansible dnf.
This is what I want to do: dnf module -y install php:remi-7.4
I can't…

Deaton
- 174
- 1
- 7
4
votes
2 answers
dnf - cannot install the best candidate for the job
I just installed CentOS8...
$ cat /etc/redhat-release
CentOS Linux release 8.0.1905 (Core)
$
... and now trying to follow Get Docker Engine - Community for CentOS | Docker Documentation, yet running into following error:
$ sudo dnf install -y…

alexus
- 13,112
- 32
- 117
- 174
4
votes
2 answers
Parametric ansible command based on facts, how to do it?
I am updating some of my ansible playbooks to run on the latest version of Fedora, that now uses dnf by default.
Since most of my playbooks should run on CentOS as well, I would like my script to run the ansible yum command when running against a…

mac
- 500
- 1
- 5
- 15
3
votes
0 answers
Showing [Installed Version] when upgrading with dnf in CentOS/Redhat/Fedora/Rocky Linux
When running dnf upgrade it only shows the new version of a package about to be upgraded. But I would like to see what the currently installed version of the package is too. Without having to go look up the installed packages etc. Basically I would…

BitGen01100000
- 157
- 8
2
votes
2 answers
How to keep a specific version of an old kernel while still allowing updates?
I need to keep an old kernel in Fedora: kernel-4.14.18-300.fc27.x86_64
But I still want the latest kernel updates.
1) A naive approach is to change the installonly_limit=3 value to a high number in /etc/dnf/dnf.conf.
2) A better solution was to use…

remjg
- 131
- 1
- 6
2
votes
2 answers
Installing CentOS packages on fedora from repository
Is there a way to install CentOS packages on Fedora through yum (dnf) repository? I'm trying to install freeswitch, but their own repository only provides builds for RHEL and CentOS. I assume CentOS and Fedora are compatible enough to install rpm…

Vasily Pankratov
- 121
- 2
2
votes
2 answers
How to run DNF without going OOM on GCP e2-micro
I'm trying to run Fedora Cloud Base 36 on an e2-micro in the US central region of Google Cloud Platform (GCP). I haven't upgraded packages in a couple months so I tried to do that today. When I run:
$ sudo dnf upgrade
the OS runs out of memory,…

jrefior
- 123
- 5
2
votes
2 answers
DNF Enable/Disable in Puppet
I'm trying to get PHP 7.4 installed on my RHEL 8 system with Puppet, but can't get the package declaration right to disable php and enable php:7.4 with dnf. The Puppet Package documentation doesn't describe well, and I wasn't able to learn anything…

user2857108
- 21
- 1
2
votes
0 answers
How to prevent changes of GRUB_ENABLE_BLSCFG in /etc/default/grub
With Rocky Linux 8.4 (clone of RHEL 8.4) in /etc/default/grub I have GRUB_ENABLE_BLSCFG=false
A “dnf update” that included grub2-tools changed it back to GRUB_ENABLE_BLSCFG=true
Is there some way to prevent this from happening in future grub2-tools…

cen2rocky
- 21
- 2
2
votes
1 answer
Remi: Which repository contains what?
If I add the remi repository with dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm I get 3 files in /etc/yum.repos.d that declare following…

robsch
- 147
- 9
2
votes
1 answer
Why isn't repository priority working in yum/dnf in Centos 8?
I'm trying to install a MariaDB RPM provided by MariaDB, not Centos. Since DNF natively supports priority, that should be as simple as creating a .repo file similar to:
[MariaDB]
name=The MariaDB 10.4…

Steve Sether
- 143
- 1
- 7
2
votes
1 answer
How does dnf-automatic send emails without knowing a password?
In the dnf-automatic config file automatic.conf I see the following lines under the email section.
[email]
# The address to send email messages from.
email_from = sender@example.com
# List of addresses to send messages to.
email_to =…

myNewAccount
- 569
- 1
- 6
- 19
1
vote
0 answers
Upgrading individual modules in Centos
I have just installed Centos Streams and found that the version of Podman in Container Tools is only 1.0.5. The latest release is 1.3. I find that strange because the idea of Centos Streams is to enable the latest upstream modules...
I cannot find a…

Bryon
- 131
- 3
1
vote
1 answer
Why DNF is not obeying "max_parallel_downloads" from config file?
My DNF config file:
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
max_parallel_downloads=8
metadata_expire=-1
# exclude=kernel*
But DNF 4.2.8-2.fc30 in Fedora 30 always uses 3 parallel downloads instead of 8.

Chitholian
- 131
- 1
- 7