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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

Unable to show available updates with Ansible and dnf check-update

I have following Ansible code for checking available updates on Rocky linux server and showing them to user: - name: Check updates ansible.builtin.command: cmd: dnf check-update register: ...
user avatar
0 votes
0 answers
12 views

Why is dnf installing modularity rpms in non-module install on Rocky

For any reason when installing packages with dnf on Rocky, there are rpms included which belong to some modules which I do not have enabled. In fact I have no modules enabled and I want top stick with ...
user avatar
  • 101
0 votes
0 answers
13 views

AppStream dependencies in offline kickstart medium

I have the requirement to provide an installation medium based on Rocky minimal, which contains several packages out of the AppStream repo (but not all, due to media size constraints). To accomplish ...
user avatar
  • 101
0 votes
0 answers
22 views

Cannot install VLC video player on Alma Linux due to error in libfluidsynth.so.2 library

Here is the error message I get wb_admin@wb-almalinux dnf]$ sudo dnf install vlc Last metadata expiration check: 16:04:02 ago on Mon 18 Jul 2022 11:18:38 PM CDT. Error: Problem: conflicting ...
user avatar
  • 111
0 votes
1 answer
95 views

Can't do any updates after upgrade to Centos 8

[_admin_@wb_centos ~]$ sudo dnf upgrade CentOS Linux 8 - BaseOS 0.0 B/s | 0 B 00:00 CentOS Linux 8 - AppStream 0.0 B/s | 0 B 00:00 ...
user avatar
  • 111
0 votes
0 answers
24 views

How to separate download and installation of updates in dnf-automatic? (RHEL 8/9)

TL;DR: Is there a way to use dnf-automatic to download available updates, then a few days later, install only those cached downloads? I utilize dnf-automatic to manage automatic updates on my CentOS ...
user avatar
  • 101
0 votes
0 answers
40 views

dnf: missing library, but does exist

Trying to install libmediainfo with dnf, got an error about missing library that does exist. How to solve this ? Here is dnfoutput: $ sudo dnf install -v libmediainfo --allowerasing DNF version: 4.7.0 ...
user avatar
0 votes
1 answer
25 views

How to deduce remote location of RPM that has been installed?

Suppose I had the following entries in /var/log/dnf.log: elfutils-default-yama-scope noarch 0.185-1.el8 baseos 49 k elfutils-devel ...
user avatar
  • 101
0 votes
1 answer
22 views

yum: local repository and modified package

Following up advices to my other question I have set up my local RPM repository on Red Hat 8 machine, placed my private packages in there and am now able to install, update etc. However, there is a ...
user avatar
  • 209
0 votes
1 answer
85 views

yum: install local RPMs and all local dependencies

I have my locally generated rpm packages (the main package and its dependencies) located in my home directory. The spec file defines dependencies. I'd like to install it with a single yum or dnf ...
user avatar
  • 209
0 votes
0 answers
217 views

Oracle Linux 8.5 upgrade with local mirror

I have an Oracle Linux 8.5 system with a local packages mirror to upgrade some internal system. Everything works fine, except for the "dnf/yum upgrade" command; there are problems with ...
user avatar
0 votes
1 answer
359 views

dnf update - dependencies

During update I've encountered following errors yum update Last metadata expiration check: 0:44:43 ago on Mon 11 Apr 2022 06:33:55 AM CEST. Error: Problem 1: package containers-common-2:1-23....
user avatar
  • 23
0 votes
0 answers
249 views

Fedora 35 dnf ignores max_parallel_download in /etc/dnf/dnf.conf

maybe a stupid question but I couldn't find any good hint of what went wrong. Except for this Post - but unfortunately, it is a dead end. ;-( Why DNF is not obeying "max_parallel_downloads" ...
user avatar
1 vote
1 answer
162 views

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 ...
user avatar
0 votes
0 answers
681 views

dnf update with nobest option

I've got following error during update: Error: Problem: cannot install the best update candidate for package glibc-gconv-extra-2.28-167.el8.x86_64 nothing provides glibc-common = 2.28-181.el8 needed ...
user avatar
  • 23
0 votes
4 answers
867 views

How to install a specific version of PostgreSQL in Red Hat 8?

I'd like to install a specific version of PostgreSQL in RHEL 8 with dnf. To achieve this I followed the PostgreSQL guide : https://www.postgresql.org/download/linux/redhat/ But actually I can only ...
user avatar
  • 142
2 votes
0 answers
287 views

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 ...
user avatar
0 votes
1 answer
83 views

Cannot get latest-version package from multiple yum repos

There are two rpm repos in my CentOS 8.1.1911. Details are as follows: # virt-1.repo [appstream] name=CentOS Linux 8-stream - AppStream baseurl=http://mirrors.ustc.edu.cn/centos/8-stream/AppStream/$...
user avatar
3 votes
0 answers
147 views

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 ...
user avatar
0 votes
1 answer
171 views

Installing SSH Server on RHEL 8.4

We have a Ubuntu Docker container that runs a SSH server that we are trying to port over to Red Hat 8.4. I am trying to install the openssh-server package using the dnf package manager via my ...
user avatar
0 votes
2 answers
4k views

CentOS 8.3 - How to switch a PHP installation from Remi to AppStream?

Currently running PHP 7.4 from Remi. It was a modular dnf installation that replaced PHP 7.2 AppStream packages back when 7.2 was the newest PHP available from CentOS. In other words, Remi packages ...
user avatar
1 vote
1 answer
237 views

Puppet 5.5.22, dnfmodule reset

I've been trying to figure out how to convert dnf module reset php dnf module install php:remi-7.4 to a stanza in a puppet module for several hours without any success. Has anyone figured out how to ...
user avatar
  • 1,037
0 votes
1 answer
283 views

Package MariaDB-shared requires MariaDB-common, but none of the providers can be installed

I am trying to update the packages on my CentOS 8 server, but when I run sudo dnf update, the following message shows up: Last metadata expiration check: 0:43:34 ago on Wed 12 May 2021 11:59:25 AM ...
user avatar
  • 61
0 votes
1 answer
111 views

After power failure restart both DNF and YUM stopped working, do nothing, not even metadata check

My environment, happily functioning for a long time, experienced a power outage - of course, the immortal power supply was offline at the time, needing new batteries. As the administrator, I know ...
user avatar
  • 1,128
0 votes
1 answer
612 views

Failing to download metadata with DNF upgrade playbook

i'm trying to learn something about ansible and the automation, unfortunately I'm getting frustrated at the early step. I just tried from debian 10 machine with ansible to write a yaml to upgrade 2 ...
user avatar
0 votes
1 answer
653 views

Broken Dnf update on centos 8

I am getting the following error while doing a dnf update on a centos 8 server. I have already tried the following: dnf clean all dnf distro-sync dnf update --best --allowerasing Last metadata ...
user avatar
0 votes
0 answers
1k views

CentOS 8 yum/dnf update fails over internet connection

I have a squid proxy server on CentOS 8 and whenever I install a package it returns lines along the following: [MIRROR] git-core-doc-2.27.0-1.el8.noarch.rpm: Curl error (3): URL using bad/illegal ...
user avatar
  • 3
0 votes
1 answer
371 views

CentOS upgrade hosed

I decided to upgrade a remote 'live' server from CentOS 7 to 8. I followed the instructions here https://www.tecmint.com/upgrade-centos-7-to-centos-8/ and got into an endless loop of failures. # dnf ...
user avatar
  • 183
1 vote
1 answer
869 views

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 repositories: remi-modular remi-modular-...
user avatar
  • 137
0 votes
1 answer
80 views

New to RHEL; Coming from Fedora; Different repo managers?

I'm coming from fedora. Just testing the waters in RHEL 8.2 None of my standard dnf packages are available. For instance: $ sudo dnf install powerline powerline-fonts [sudo] password for adamhanna: ...
user avatar
0 votes
1 answer
434 views

certbot installation on CentOS 8 fails

Trying to install certbot on CentOS 8 with sudo dnf install certbot python3-certbot-nginx, as suggested at certbot's website fails with the following error Error: Problem 1: package python3-certbot-...
user avatar
1 vote
1 answer
2k views

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....
user avatar
0 votes
1 answer
2k views

How to install Node.js 12 on CentOS 8?

I tried the following this post which states Application Streams are typically named for the version of the software that is included, e.g. nodejs:8 or nodejs:10 [...] ... but as you can see ...
user avatar
  • 144
2 votes
1 answer
1k views

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 ...
user avatar
0 votes
1 answer
160 views

Will dnf-automatic update packages in yum.repos.d even though that's a yum directory?

Environment: CentOS 8 Package: NGINX 1.16 I installed, enabled and confirmed dnf-automatic with the following commands. $ sudo dnf install dnf-automatic $ sudo systemctl enable --now dnf-automatic....
user avatar
0 votes
1 answer
602 views

Linode / Nanode - Out of memory, when running yum update

I rented a nanode from linode which is the smallest model. I tried to install powershell core which caused some issues. Now I got the memory allocation error: [codingsafari@centosbox ~]$ sudo yum ...
user avatar
  • 117
0 votes
1 answer
533 views

Unable to run dnf update, after adding packages-microsoft-com-prod

Problem I tried to install power shell core on a CentOS 8 sever. It didnt work so I tried a couple solutions from the web. It seems like I have added a repository twice. On dnf update I get this ...
user avatar
  • 117
4 votes
2 answers
5k views

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 ...
user avatar
  • 144
0 votes
4 answers
3k views

Missing repo name in dnf's configuration

Whenever I use dnf i get the warning: Repository 'amdgpu-pro-local' is missing name in configuration, using id. Im not quite clear on what name is missing, since there is a name in the message. ...
user avatar
  • 115
4 votes
2 answers
9k views

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 ...
user avatar
  • 12.3k
1 vote
0 answers
43 views

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 ...
user avatar
  • 131
1 vote
1 answer
613 views

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 ...
user avatar
1 vote
1 answer
3k views

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 ...
user avatar
  • 305
2 votes
2 answers
4k views

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 /...
user avatar
  • 131
8 votes
2 answers
15k views

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 ...
user avatar
  • 277
2 votes
2 answers
990 views

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 ...
user avatar
1 vote
2 answers
90 views

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 ...
user avatar
0 votes
1 answer
556 views

Squid never caching files using dnf

I'm attempting to set up a local repository cache for dnf. The idea is for one machine on the network to download a package, then any other machine on the network attempting to acquire the package ...
user avatar
0 votes
1 answer
2k views

How to install a gui in Fedora 23 Cloud

A little background - I'm trying to install oracle DB, and to do so I need a gui for the install. After that I can get rid of it. I'm running a Fedora 23 VM on digitalocean. I have run su -c 'dnf ...
user avatar
1 vote
0 answers
241 views

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' (...
user avatar
  • 45