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
0 answers
36 views

Troubleshooting GNOME Interface Unresponsiveness after Deleting DNF Cache on Fedora 39

I encountered a problem with my Linux system running Fedora 39 after executing the following command: sudo rm -rfv /var/cache/dnf/* I know now that I should have used it dnf clean all Initially, I ...
Wissam Al-kahwaji's user avatar
1 vote
1 answer
170 views

DNF-Automatic trigger set to run at unconfigured time

I am configuring dnf-automatic to automatically install security updates on some low priority test boxes. Eventually I want to the updates to run every Sunday morning around 4-5AM, but for testing ...
motorleague's user avatar
0 votes
1 answer
334 views

How to install moreutils on AL2023

If I run docker run -it --rm --entrypoint=/bin/bash fedora:latest dnf install moreutils it works. If I run: 19:57:34:~/ $ docker run -it --rm --entrypoint=/bin/bash public.ecr.aws/lambda/provided:...
Richard Wheeldon's user avatar
1 vote
1 answer
200 views

Updating vulnerable python packages on Oracle Linux 8.8

I have a number of Oracle Linux 8.8 machines and Crowdstrike is flagging all of them for vulnerabilities associated with the python packages installed with python 3.6. Oracle says python 3.6 is ...
bangheadhere's user avatar
3 votes
1 answer
4k views

Alma linux 8 update fails for any package with GPG keys check fail

I have upgraded a Centos7 server to Centos8 and then to Almalinux 8.8. If I run dnf update I get an error for any package. I have removed yum so I am using dnf. I have tried dnf clean all but the ...
Asle's user avatar
  • 143
1 vote
1 answer
277 views

Ansible update list

The task is to get a list of the latest updates. Approximately as the command issues dnf check-update Ansible code: tasks: - name: List Available Patches (Non-Kernel) dnf: list: updates ...
rk3dnp's user avatar
  • 23
0 votes
1 answer
1k views

Installing redis 7.0 from remi-modular repo

This might be blatantly obvious, but I cannot install a package from the remi-modular repository, despite having added the repo file in the /etc/yum.repos.d/ and validating it. I have attempted ...
Seymour B's user avatar
0 votes
1 answer
476 views

Can you force replacement of files marked %config in RPMs

If files in RPMs are marked %config or %config(noreplace)¹, running something like dnf update or yum update will not touch (modified) configuration files, but leave the old ones in place and create ....
Lars Kiesow's user avatar
0 votes
1 answer
155 views

Fedora Server 38 beta dnf error

After this night my dnf on Fedora 38 broken. Always when I try to install some package or run upgrade command i have output Total ...
Олег Пона's user avatar
0 votes
1 answer
336 views

dnf list available updates for locked packages

With yum versionlock status I can get a list of available updates that are currently blocked by versionlock. With dnf this command doesn't seem to work. I cannot find a dnf command that does the same. ...
hendrik_nl's user avatar
3 votes
4 answers
1k views

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: $ ...
jrefior's user avatar
  • 133
0 votes
0 answers
2k views

dnf update: Cannot download, all mirrors were already tried without success. (all mirror 404)

I am trying to execute the dnf update command on almalinux 8.7 Before a few hours it worked properly, now all mirror gives 404. I examined the urls, and it seems, that in all repo the checksum in urls ...
g.pickardou's user avatar
0 votes
1 answer
179 views

dnf doesn't show all updates compared to yum

I had a CentOS 7 machine which I converted to use OEL 7 some time back using the centos2ol.sh script. Today, I gave the command: "dnf upgrade" and it showed be that 17 packages were to be ...
Hussain Akbar's user avatar
0 votes
1 answer
1k views

How to safely downgrade gcc from 8.5 to 8.4?

I have a CentOS Stream 8 server with a backup application that requires the kernel to be compiled with the same version of gcc. Latest kernel is: 4.18.0-408.el8.x86_64 I inadvertently updated gcc in ...
location's user avatar
1 vote
1 answer
387 views

Use dnf update based on age of packages

We manage quite a lot of linux servers using ansible VIA an AWX server, and patch these once a week using dnf update. Most of our servers are Alma Linux. We've had two instances recently where ...
shaneoh's user avatar
  • 424
1 vote
2 answers
2k views

Yum installation corrupts lib on Redhat Ubi8

I'm working on a Redhat Ubi8-minimal Container. My goal is to install an .rpm from file together with its dependencies. Ubi8-minimal only provides microdnf which cannot install local .rpm's. So I ...
ThomasH's user avatar
  • 121
2 votes
1 answer
3k views

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

I have the following Ansible code for checking available updates on a Rocky linux server and showing them to user: - name: Check updates ansible.builtin.command: cmd: dnf check-update register:...
Madoc Comadrin's user avatar
0 votes
1 answer
3k 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 ...
gsb005's user avatar
  • 111
0 votes
0 answers
617 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 ...
ymudyruc's user avatar
0 votes
1 answer
58 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 ...
Lucky's user avatar
  • 113
0 votes
1 answer
291 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 ...
Mark's user avatar
  • 259
0 votes
1 answer
3k 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 ...
Mark's user avatar
  • 259
0 votes
1 answer
1k 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....
msr's user avatar
  • 33
1 vote
0 answers
1k 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" ...
terpentin's user avatar
2 votes
2 answers
1k 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 ...
user2857108's user avatar
1 vote
1 answer
4k 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 ...
msr's user avatar
  • 33
0 votes
4 answers
8k 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 ...
mishka's user avatar
  • 152
3 votes
0 answers
986 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 ...
cen2rocky's user avatar
0 votes
1 answer
579 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/$...
freshMan's user avatar
4 votes
0 answers
451 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 ...
BitGen01100000's user avatar
0 votes
1 answer
689 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 ...
phydeauxman's user avatar
1 vote
2 answers
17k 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 ...
chewykernel's user avatar
1 vote
1 answer
559 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 ...
tink's user avatar
  • 1,035
0 votes
1 answer
1k 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 ...
Alex's user avatar
  • 61
0 votes
1 answer
183 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 ...
Richard T's user avatar
  • 1,242
0 votes
1 answer
1k 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 ...
bind2lrz's user avatar
0 votes
1 answer
931 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 ...
user2650277's 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 ...
Gwynn's user avatar
  • 13
0 votes
1 answer
908 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 ...
dargaud's user avatar
  • 203
2 votes
1 answer
2k 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-...
robsch's user avatar
  • 157
0 votes
1 answer
172 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: ...
adam-m-hanna's user avatar
0 votes
1 answer
666 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-...
user540468's user avatar
2 votes
1 answer
4k 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....
Steve Sether's user avatar
0 votes
1 answer
3k 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 ...
leonheess's user avatar
  • 144
3 votes
1 answer
2k 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 = [email protected] # List of ...
myNewAccount's user avatar
0 votes
1 answer
501 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....
myNewAccount's user avatar
0 votes
1 answer
1k 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 ...
The Fool's user avatar
  • 117
0 votes
1 answer
939 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 ...
The Fool's user avatar
  • 117
6 votes
2 answers
9k 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 ...
Deaton's user avatar
  • 184
0 votes
4 answers
6k 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. ...
Human's user avatar
  • 115