Questions tagged [dnf]

DNF(Dandified Yum) is the next upcoming major version of Yum, a package manager for RPM-based Linux distributions. It roughly maintains CLI compatibility with Yum and defines strict API for extensions and plugins.

Filter by
Sorted by
Tagged with
49
votes
5answers
88k views

Yum: How can I view variables like $releasever, $basearch & $YUM0?

I am setting up a yum repository, and need to debug some of the URLs in the yum.conf file. I need to know why is Scientific Linux trying to grab this URL, when I was expecting it to grab another URL: ...
43
votes
7answers
54k views

List all RPM packages installed from repo “X”

How can I get a list of all of the RPM packages that have been installed on my system from a particular repo (e.g., "epel")?
41
votes
8answers
74k views

How can I remove Orphan Packages in Fedora?

I just switched from Ubuntu to Fedora14. In Ubuntu we had the apt-get autoremove thing to remove orphan/unused packages. What is the counterpart in Fedora?
24
votes
2answers
44k views

Can I force dnf to install an old version of a package?

I want to install an older version of package <x>, and when I use dnf it only shows the current version of the package <x>. Is there any way to install an older versions using dnf ?
22
votes
2answers
975 views

Why don't package managers have per-user installations and registries?

Both Apt and DNF/Yum, the two most popular package management schemes for Linux distributions to my knowledge, only support system-wide installation of packages: Files owned by root, binaries go in (/...
17
votes
2answers
16k views

Reinstalling packages with missing/corrupt files

Following an unclean shutdown and a colourful fsck, a whole bunch of files have gone missing. The output of 'rpm -Va' is several hundred lines long (mostly missing files but also some checksum and ...
16
votes
4answers
22k views

Package bash-completion missing from Yum in CentOS

I am trying to get tab-completion working in Yum in CentOS 6 (so I can do something like yum install firefo<TAB> and get back firefox), and I have found many tutorials which say to simply do yum ...
15
votes
1answer
44k views

Install Locally using dnf in Fedora without using internet connection

I am trying to locally install an rpm package without using the internet. I tried the following: sudo rpm -u kernel-devel-4.2.7-200.fc22.x86_64.rpm and I got: error: kernel-devel-4.2.7-200.fc22....
14
votes
7answers
7k views

How to replicate installed package selection from one Fedora instance to another?

I have a Fedora system (A) where I have installed some packages over the time. Now I want to install Fedora on another computer (B) and I want to install the same packages on it. In Debian terms I ...
13
votes
4answers
4k views

dnf equivalent of “yum update --security”

yum update --security installs only security updates. I think it's an extension from the yum-security plugin. Is there an equivalent dnf command? (dnf replaced yum in Fedora 22)
13
votes
1answer
7k views

What is the difference between “dnf history rollback” and “dnf history undo”?

Let's read the official documentation: dnf history rollback <transaction-spec> Undo all transactions performed after the specified transaction. If it is not possible to undo any transaction ...
10
votes
1answer
8k views

When is Centos going to replace yum with dnf ? [closed]

Dnf is already there in fedora which is a test bed for Rhel/centos but why centos 7 is still using yum ?
9
votes
1answer
2k views

What is the purpose of /usr/lib/.build-id/ dir?

After a fresh inst of f27 (netinstall) I noticed that many pkgs place tiny files in /usr/lib/.build-id/ dir. At 1st I thought I somehow had enabled some obscure "debug" mode for dnf, but even $ dnf ...
8
votes
2answers
4k views

Yum vs DNF (changed in Fedora 22)

As I was exploring about Fedora 22 (I'm currently using fedora 20), I came to learn that Yum has been replaced by DNF. Basically what I want to know is the difference between those two Fedora package ...
8
votes
2answers
1k views

What does the '@' mean in front of the repo name in `dnf list`?

When I want to list installed packages, I do it usually in one of two ways. The old fashioned way is using rpm -qa | grep <whatever I look for>, and that's that. But recently I wanted a more ...
7
votes
3answers
2k views

Find files not installed by RPM package manager

Is there some way to find out all the files on a given system that weren't installed via RPM? I understand that I can brute force this myself using something like rpmquery -f in a script that loops ...
7
votes
1answer
1k views

How to use DNF to find out package versions available in a different release of Fedora?

Is it possible to use dnf (or another utility) to search repositories of different releases of Fedora? For instance to search my current release for all versions of a package I can do dnf --...
7
votes
3answers
3k views

How do you build chroot jails with dnf?

Back in the day I used to build chroot jails using yum. It was simple, easy, and let me do things that weren't really available at the time (build packages for multiple distros on platforms like ia64 ...
7
votes
3answers
2k views

How to enable package caching in dnf?

I started using fedora 22 and started learning dnf only to find out about two annoying facts: Almost every time I install or upgrade anything it has to rebuild the whole repository metadata cache all ...
7
votes
1answer
2k views

How can I install 32-bit dependencies on a 64-bit machine using dnf builddep?

I am trying to install the build dependencies for Wine, so that I can do a bit of hacking with it. I am running Fedora 22, 64-bit. I have installed the 64-bit dependencies successfully using dnf ...
6
votes
2answers
5k views

Error after installing dnf on CentOS 7

Installed dnf according to these instructions: yum install epel-release -y yum install dnf after that dnf --version works fine but dnf repolist or anything else gives: Extra Packages for Enterprise ...
6
votes
2answers
2k views

DNF. How to find which group package belongs to?

I'm using fedora 22 and dnf-1.1.2-4.fc22.noarch As an use-case scenario: I found that strace package is not installed. I want to figure out if this package belongs to any other group, to install ...
6
votes
0answers
8k views

Fedora 29: Failed to synchronize cache for repo 'fedora-modular'

I upgraded Fedora 27 to 28, worked with it a bit (did not run dnf update) and then upgraded to 29. This morning I tried sudo dnf -v update and I got sudo dnf -v update ...
5
votes
1answer
2k views

“package X requires Y, but none of the providers can be installed”

While upgrading to fedora 28, I ran two commnads sudo dnf upgrade --refresh sudo dnf install dnf-plugin-system-upgrade These worked but next command sudo dnf system-upgrade download --...
5
votes
1answer
2k views

How to revert a `dnf install`?

I have installed liveusb-creator using DNF on Fedora 24. These are the dependencies that were installed along with it: liveusb-creator.noarch 3.95.2-1.fc24 python-cssselect.noarch 0.9.1-9.fc24 python-...
5
votes
2answers
10k views

Can i install dnf on debian?

to setup do a image of a fedora distribution myself. i would like to run the dnf package manager (fedora) on debian, as this tool allows to download and install rpm packages in an specified target ...
5
votes
1answer
653 views

dnf tab completion hangs

Tab completion is hanging when attempting to complete package names. eg dnf info fire[TAB]. How can I fix this? It works in general for bash, and also for completing dnf options, but not for package ...
4
votes
3answers
843 views

Unauthorized Installations in dnf after entering a command that's not found

I'm using Korora 23, which is based on Fedora 23. Whenever I type a command in bash that's not available, bash asks if I want to install a package to provide the command. Problem is, if I type y, it ...
4
votes
1answer
621 views

How to pin a package in dnf (Fedora)

I've got a temporary situation where I'm working with pre-release F27, and need to keep one package to a specific (working) version and not be upgraded until the subsequent versions stop breaking ...
4
votes
2answers
16k views

How to add the RPM Fusion and livna repositories to Fedora?

RPM Fusion and Livna are common third party package repositories for Fedora. You need them if you want to install media players, codecs and/or DVD playback libraries that are not part of the primary ...
4
votes
2answers
554 views

How to remove line wrapping from DNF & YUM commands?

When using dnf and yum on rpm based Linux distros (RHEL/Red Hat, Fedora, CentOS, etc) the utility will automatically wrap lines to make it more friendly for the user to read. This is problematic as ...
4
votes
3answers
973 views

How do I add a yum repository, manually?

I am trying to add the intel products repository to dnf by creating a .repo file but when I run dnf repolist I am getting this error: Failed to synchronize cache for repo 'intel-products', disabling. ...
4
votes
1answer
420 views

Accidentally deleted /usr/include. What can I do to reinstall the files that were in that directory?

I was trying to get SFML working on fedora 24, and I accidentally deleted the usr/include directory in the process. Is there any way to reinstall all the missing files? Or do I have to reinstall the ...
3
votes
4answers
7k views

fedora 24 won't boot after dnf upgrade

Last night I did an upgrade on my fedora 24 alpha install and when booting first time today I just ended up with a black screen. Then I tried booting into rescue mode, which left me with a shell ...
3
votes
3answers
7k views

Fedora 26: dnf update not working behind proxy - failed to synchronize cache for repo 'updates'

On Fedora 26 when I do sudo dnf -v update I get the error > Loaded plugins: builddep, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, > needs-...
3
votes
2answers
3k views

dnf error conflicting packages between i686 and x86_64

I am getting a series of errors similar to this file /usr/share/doc/glibc/NEWS from install of glibc-2.25-10.fc26.i686 conflicts with file from package glibc-2.25-7.fc26.x86_64 when I try to dnf ...
3
votes
3answers
2k views

dnf - how to show which mirror url has been chosen?

Below is the part of bash log, the full log can be achieved at https://gist.github.com/limkokhole/f2a423112aa005f10862: [xiaobai@xiaobai hello]$ dnf --verbose download --source readline cachedir: /...
3
votes
1answer
1k views

How do display a list of packages a certain package provides for?

On Fedora, I can get a list of packages another package depends on, with the following command: dnf repoquery --requires --resolve <package> But I'd like to have the opposite of that. I.e. ...
3
votes
2answers
2k views

How to install package from source on fedora in 2017?

What is the most clean way to install third party tar.gz's to make it maintainable through dnf? I see no checkinstall in repos, but it should be a standard and fast way to do it. There is an article ...
3
votes
1answer
2k views

dnf: How to tell what's causing broken dependencies?

Sometimes when doing a dnf upgrade I'll be told that it's skipping packages because of broken dependencies. It will tell me which packages are being skipped, but not why they're being skipped. How ...
3
votes
1answer
1k views

Cannot install packages using dnf in Fedora 22 on ARM platform

I have installed Fedora 22 (using rootfs) on an Android 5.0 device with ARMv7 processor using GNURoot app. This is working OK. All commands in the rootfs execute OK. However, I have a problem with dnf....
3
votes
1answer
753 views

Is there a difference between terminal update and software center update in Fedora?

I'm updating my system through sudo dnf update command, but sometimes there is a notification that there are new updates available but I can see them only in software center neither sudo dnf update --...
3
votes
2answers
941 views

How to create a non-persistent Virtual machine?

I am running a Fedora 23 VM. My requirement is very simple: All the packages that were installed during the running of the VM have to uninstalled when it is given a shutdown signal. In other words, ...
3
votes
3answers
5k views

Upgrading Fedora 22 to 23 failed. Now using Fedora 24

I tried upgradinfg Fedora 22 to Fedora 23 using this guide However things have failed and it seems I am still on Fedora 22. However the system thinks it is running Fedora 24 $ cat /etc/*-release ...
3
votes
1answer
71 views

How to mark a base package as not user installed while avoiding dnf autoremove?

On a freshly installed Fedora system, base packages such as sudo are not counted as user installed, i.e. dnf repoquery --userinstalled | grep sudo comes back empty. At the same time, these packages ...
3
votes
1answer
1k views

Extremely slow dnf

I got a strange issue with extremely slow dnf, to the point where computer freezes for a few seconds during installation of packages. Running Fedora 29, but this is happening for years. Otherwise the ...
3
votes
1answer
384 views

Is it actually necessary to upgrade all packages before upgrading Fedora with DNF?

The Fedora wiki directions for a DNF system upgrade say to update all packages normally with dnf upgrade --refresh before beginning the version upgrade per se. I can understand that you'd want the ...
2
votes
3answers
79 views

How to topologically sort installed rpm packages?

I want to sort topologically, according to dependencies, all installed rpm packages on my Fedora with most required packages to be on top (for example glibc) and least required packages to be on ...
2
votes
1answer
2k views

Does dnf have an equivalent to apt's “build-dep”

something like sudo apt build-dep apache Supposedly installs all the dependencies needed to build apache from source (I've never used it before). Is there an equivalent command for the dnf package ...
2
votes
2answers
3k views

Error: GPG check FAILED when upgrading system using dnf in Fedora

When I tried to upgrade a Fedora 26 Server earlier today, I got this error message after downloading packages: warning: /var/cache/dnf/forensics-5e8452ee3a114fbe/packages/protobuf-c-1.3.0-1.fc26....