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.
63
questions
0
votes
1
answer
18
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 ...
0
votes
0
answers
33
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:...
1
vote
1
answer
90
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 ...
0
votes
0
answers
182
views
Alma linux 8 update fails for any package with CPG 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 ...
1
vote
1
answer
146
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
...
0
votes
1
answer
668
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 ...
0
votes
1
answer
295
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 ....
0
votes
1
answer
144
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 ...
0
votes
1
answer
219
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. ...
0
votes
0
answers
464
views
ubi8 docker image missing packages
I am experimenting the ubi8 as a migration from centos 7 to ubi8 for rhel linux distribution.
Not sure if I miss something, but the ubi-8-appstream-rpms and ubi-8-baseos-rpms seem missing a lot of ...
3
votes
3
answers
794
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:
$ ...
0
votes
0
answers
1k
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 ...
0
votes
1
answer
143
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 ...
0
votes
1
answer
989
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 ...
1
vote
1
answer
327
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 ...
1
vote
2
answers
1k
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 ...
0
votes
1
answer
2k
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:...
0
votes
1
answer
2k
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
...
0
votes
0
answers
528
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
...
0
votes
1
answer
57
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 ...
0
votes
1
answer
262
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 ...
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 ...
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....
0
votes
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" ...
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 ...
1
vote
1
answer
3k
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 ...
0
votes
4
answers
6k
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 ...
3
votes
0
answers
852
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 ...
0
votes
1
answer
437
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/$...
4
votes
0
answers
368
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 ...
0
votes
1
answer
602
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 ...
1
vote
2
answers
15k
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 ...
1
vote
1
answer
502
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 ...
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 ...
0
votes
1
answer
173
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 ...
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 ...
0
votes
1
answer
910
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 ...
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 ...
0
votes
1
answer
838
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 ...
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-...
0
votes
1
answer
146
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:
...
0
votes
1
answer
631
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-...
2
votes
1
answer
3k
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....
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 ...
2
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 ...
0
votes
1
answer
386
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....
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 ...
0
votes
1
answer
864
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 ...
6
votes
2
answers
8k
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 ...
0
votes
4
answers
5k
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. ...