Questions tagged [dnf]

DNF or Dandified Yum is the next generation version of the Yellowdog Updater, Modified (yum), a package manager for RPM-based distributions.

55 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
4
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
  • 144
  • 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
  • 12,342
  • 27
  • 115
  • 173
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…
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…
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

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
  • 519
  • 1
  • 5
  • 14
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
  • 2
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
  • 5
1
vote
1 answer

How to install Mysql 5.6 on RHEL8 from Mysql repos?

I'm new to dnf, so this is probably obvious to someone. I did check versionlock and checked for any exclude lines in any of the /etc/yum.repos.d files. But, when I have any other repos enabled, I cannot find mysql server to install. I can try to…
Max Allan
  • 305
  • 1
  • 4
  • 11
1
vote
2 answers

Install package with at least the specified version

After a HDD failure I managed to save the list of installed packages on my Fedora 23 box. I have already reinstalled the base system and now want to restore the old packages. I tried xargs sudo dnf install < packagelist where packagelist is the…
GergelyPolonkai
  • 359
  • 1
  • 5
  • 12
1
vote
0 answers

Cannot install iptables-service

I cannot install iptable-service on fedora 22. When i type the command dnf install iptables-service , it throws the error mentioned below. Error: Failed to synchronize cache for repo 'updates' (and some more info). I tried manually entering the…
john
  • 45
  • 1
  • 6
1
vote
1 answer

Fedora 22 DNF timeout

I just installad Fedora 22 and DNF (yum's replacement) is performing terrible. 9 out of 10 request fails out of timeout, with random effect specifying IPv4 or not. The problem seems to be that DNF can't pick a proper mirror nad often pick a…
Richard87
  • 230
  • 1
  • 2
  • 6
1
2 3 4