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
1
vote
1 answer

dnf/yum installs an old version of a transitive dependency

The package java-1.8.0-openjdk-headless-1:1.8.0.352.b08-2.el8_7 requires nss (any version as I could check with repoquery) If you check the list of available versions of that package # dnf list --showduplicates nss nss.x86_64 …
Zucca
  • 561
  • 1
  • 7
  • 21
1
vote
1 answer

dnf installs python3 modules only for platform-python

I'm currently working on an Ansible project which relies on python. For the ansbile package module the python3-dnf module is required. On the destination Server (AlmaLinux 8.6) python3-dnf is already installed: $ dnf install python3-dnf Last…
MXMLN
  • 65
  • 2
  • 11
1
vote
1 answer

How to install ffmpeg on UBI docker images?

I'm looking for a simple way to install ffmpeg in a UBI8 (ubi-minimal) docker image. I tried running in the dockerfile the following: RUN microdnf upgrade RUN microdnf install ffmpeg And I'm getting: ------ > [7/8] RUN microdnf install ffmpeg: #11…
S. D.
  • 788
  • 5
  • 15
1
vote
1 answer

having trouble with dnf-automatic notification

My machine is running Rockylinux 8. I would like to receive the notifications by email, but I believe that I have to self-host a SMTP server if that's correct. So I find out Gotify as a notification tool for my phone. I want dnf-automatic to execute…
user19292461
1
vote
2 answers

Unable to install freeipa-server package during offline install on Centos 8 Stream

This is about installing the freeipa-server package along with its dependencies for an offline install. This I am trying on a CentOS 8 Stream. I created a CentOS 8 Stream iso will required packages cached. i.e., during ISO installation, no…
BTR Naidu
  • 1,063
  • 3
  • 18
  • 45
1
vote
0 answers

how to undo "dnf --installroot" command in fedora linux?

I wanted to install a package under /mnt/data folder to do that i have used this commnad dnf --installroot=/mnt/data --releasever=/ install package_name But this command create a whole new linux root folder structure inside /mnt/data folder. Now i…
NoobCoder
  • 61
  • 4
1
vote
1 answer

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/$basearch/os/ gpgcheck=0 enabled=1 #…
freshMan
  • 11
  • 3
1
vote
0 answers

Adding a fedora repository and including the gpgkey (dnf)

i have a Linux system where dnf packet manager is installed but no package sources are enabled. So i created a directory "/etc/yum.repos.d" in this directory i have the files fedora.repo, fedora-updates.repo and fedora-updates-testing.repo. However…
Stefan
  • 13
  • 1
  • 3
1
vote
1 answer

Preventing Centos user from installing unsigned RPMs

I have a CentOS 8 system that I want the user to be able to install RPMs. I plan on doing something like the following in the sudoers file: username ALL = NOPASSWD : /usr/bin/dnf However, obviously this has security implications. I would like to…
AAG
  • 235
  • 1
  • 11
1
vote
0 answers

Unable to install Postgresql server on Centos 8, using Ansible

I'm using Ansible to install Postgresql on my Centos 8 machine. This is the command that raises an error: - name: PostgreSQL | Install PostgreSQL | dnf dnf: name: "postgresql{{ postgresql_version_terse }}-server,postgresql{{…
Jacobian
  • 10,122
  • 29
  • 128
  • 221
1
vote
1 answer

Bitbake fails at do_rootfs : none of the providers can be installed

I am trying to build a container image running a tensorflow-lite application. This app also includes examples which I included as a packages The build fails at do_rootfs because of a missing dependency. Here is the error I get, thrown by dnf…
antograb
  • 45
  • 2
  • 7
1
vote
1 answer

Packages in locally hosted repository are not seen by dnf

I am hosting 2 repositories (myrepo-main and AppStream) on a local server. The myrepo-main hosts mysql commercial rpms and some other packages. Unless I disable the AppStream repo, most of the mysql packages are not visible. $ sudo dnf list | grep…
mosinoski
  • 13
  • 4
1
vote
2 answers

I am unable to install PostgreSQL 12 on Red Hat 8.1 after following official instructions using dnf

Official Instructions I have been trying to install PostgreSQL 12 but I get the following error: No match for argument: postgresql12 Error: Unable to find a match: postgresql12 When I run the command sudo dnf repolist this is what I get: $ sudo dnf…
Alessandro
  • 309
  • 5
  • 23
1
vote
1 answer

Why dnf config-manager --save does not work?

I want to add a rpm repo for my system with dnf config-manager: # dnf config-manager --add-repo=http://example.com/rpm-repo --setopt=gpgcheck=0 --save Adding repo from: http://example.com/rpm-repo # cat…
Sammers
  • 1,038
  • 2
  • 8
  • 20
1
vote
2 answers

RPM GPG key import from an RPM post install script

I have to create 3 RPMs like this: key.rpm : Does an rpm import of the RPM GPG public key(/etc/sw-key/gpg.key) in it's post-install script. software1.rpm : Requires key.rpm and signed by /etc/sw-key/gpg.key's private key. software2.rpm : Requires…
Santhosh N
  • 157
  • 10