Questions tagged [dnf]

DNF is a software package manager that installs / updates / removes packages on RPM-based Linux distributions.

DNF stands for Dandified Yum and is the next generation version of the YUM package manager.

DNF was introduced in Fedora 18. It has been the default package manager since Fedora 22.

141 questions
211
votes
11 answers

How do I install g++ for Fedora?

How do I install g++ for Fedora Linux? I have been searching the dnf command to install g++ but didn't find anything. How do I install it? I have already installed gcc
saplingPro
  • 20,769
  • 53
  • 137
  • 195
29
votes
10 answers

CentOS 8 - yum/dnf error: Failed to download metadata for repo

On my CentOS 8 server, many dnf and yum commands fail with this error: Failed to download metadata for repo This seems to apply only to repositories involving https connections, e.g.: /etc/yum.repos.d $ cat…
CODE-REaD
  • 2,819
  • 3
  • 33
  • 60
26
votes
2 answers

Install single package from Rawhide

How can one install a single Rawhide package, without upgrading the entire operating system?
Zombo
  • 1
  • 62
  • 391
  • 407
20
votes
6 answers

RHEL8/Fedora - yum/dns causes cannot download repodata/repomd.xml for docker-ce

Question How to fix the Cannot download repodata/repomd.xml: All mirrors were tried for docker-ce. Problem Get the error Cannot download repodata/repomd.xml: All mirrors were tried with yum install docker-ce by following the current (as of…
mon
  • 18,789
  • 22
  • 112
  • 205
15
votes
9 answers

Error: Failed to synchronize cache for repo 'updates'

I am using Fedora 25. I'm trying to install gcc on fedora25 using the sudo dnf install gcc command. It is always showing: Error: Failed to synchronize cache for repo 'updates' I am also getting the same error when I try to install other packages.…
Naveen Kumar
  • 159
  • 1
  • 1
  • 5
10
votes
3 answers

Ansible dnf module enable Fedora Copr repository

I want to enable a Fedora Copr repository with Ansible. More specifically I want to convert this command: dnf copr enable ganto/lxd Using an Ansible command module I overcome this problem but break the task's idempotence (if run again, the role…
tvl
  • 3,868
  • 2
  • 16
  • 35
8
votes
1 answer

microdnf update command installs new packages instead of just updating existing packages

My Dockerfile uses base image registry.access.redhat.com/ubi8/ubi-minimal which has microdnf package manager. When I include following snippet in docker file to have latest updates on existing packages, RUN true \ && microdnf clean all \ &&…
JRomio
  • 2,407
  • 3
  • 26
  • 27
7
votes
1 answer

How do I recover a corrupted dnf database?

I just killed a dnf process as it was not responding to ^Z Now I have a corrupted Berkley database and no idea of how to rebuild it - colour me stoopid. Any help would be gratefully received. The output of any dnf search now is: error: rpmdb:…
Doug
  • 499
  • 4
  • 11
5
votes
2 answers

sbt is installed but not found

Fedora 25. sbt is installed and I have been using it, probably last time was a week ago. But today it is not found. $ sbt bash: sbt: command not found... Install package 'sbt' to provide command 'sbt'? [N/y] Tried a reinstall but dnf knows what I…
Max Wen
  • 737
  • 2
  • 10
  • 21
4
votes
2 answers

How to install a PostgreSQL terminal client using microdnf install?

What PostgreSQL clients are available through microdnf install? I'm trying to install a client via my Dockerfile. I've tried multiple commands I've seen recommended and several guesses, but none of them worked for me: microdnf install -y…
ScrappyDev
  • 2,307
  • 8
  • 40
  • 60
4
votes
1 answer

Gitlab Runner: microdnf/yum command not found on different machine

I have two different server machine with gitlab-runner hosted. I use one as development version, the other one as production release. I have the same configuration on both machine, so the lastest release of gitlab-runner and the lastest release of…
Bugpirasi
  • 371
  • 6
  • 22
4
votes
2 answers

How to pass options to dnf when using Ansible

When installing packages through the Ansible's dnf module. How do I pass options like --nobest to dnf? Is there alternative to using raw shell commands.
Philippe
  • 1,715
  • 4
  • 25
  • 49
4
votes
2 answers

Openmpi on Fedora 21

I am trying to compile some code in Fedora 21 using 'mpif90'. First I install openmpi with 'yum': [root@localhost Inversion]# yum install openmpi Loaded plugins: langpacks Package openmpi-1.8.3-2.fc21.x86_64 already installed and latest…
Trkmrc
  • 41
  • 1
  • 3
4
votes
1 answer

Use pip or dnf to install python packages in Fedora?

When I install some python packages in Fedora, there're two ways: use dnf install python-package use pip install package I notice even I use dnf update to make my Fedora the newest, when I use pip, it still tell me something like pip is a old…
linrongbin
  • 2,967
  • 6
  • 31
  • 59
3
votes
1 answer

gitlab-ee-16.0.1-ee.0.el8 failed to update due to GPG check failed

I'm trying to update gitlab-ee from 15.11.2 to 16.0.1 under fedora 38 through dnf The update was failed due to the following error. I had tried many ways to solve this issue but failed. Can any one help me get out of this mire? error: Verifying a…
Gavin
  • 95
  • 9
1
2 3
9 10