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
9
votes
2
answers
17k
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 ...
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 ...
4
votes
2
answers
2k
views
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 ...
4
votes
2
answers
11k
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 ...
4
votes
0
answers
366
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 ...
3
votes
3
answers
789
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:
$ ...
3
votes
0
answers
851
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 ...
2
votes
2
answers
1k
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 ...
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-...
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....
2
votes
2
answers
5k
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 /...
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 ...
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
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
2
answers
182
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 ...
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 ...
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 ...
1
vote
1
answer
2k
views
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 ...
1
vote
1
answer
142
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
...
1
vote
1
answer
499
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 ...
1
vote
1
answer
326
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
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 ...
1
vote
0
answers
44
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 ...
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 ...
1
vote
0
answers
252
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' (...
1
vote
1
answer
942
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 ...
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
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
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
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 ...
0
votes
1
answer
261
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
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 ...
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/$...
0
votes
1
answer
599
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 ...
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
908
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
1
answer
837
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 ...
0
votes
1
answer
383
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
861
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 ...
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 ...
0
votes
0
answers
12
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
32
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:...
0
votes
0
answers
178
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 ...
0
votes
1
answer
660
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
290
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
218
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
460
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 ...