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.

362 questions
105
votes
8 answers

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: # yum install package…
Stefan Lasiewski
  • 19,264
  • 24
  • 70
  • 85
105
votes
3 answers

How to install dig on CentOS?

I can't find the dig command on my new CentOS installation. I've tried dnf install dig but it say that it cannot find the package. How do I install dig on CentOS?
Mikael Dúi Bolinder
  • 3,982
  • 5
  • 18
  • 23
82
votes
8 answers

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")?
Lorin Hochstein
  • 8,077
  • 17
  • 50
  • 56
77
votes
3 answers

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

I want to install an older version of package , and when I use dnf it only shows the current version of the package . Is there any way to install an older versions using dnf ?
0x0584
  • 1,284
  • 2
  • 15
  • 23
47
votes
10 answers

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?
c0da
  • 521
  • 1
  • 4
  • 6
32
votes
1 answer

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 --showduplicates list . Is it possible to do…
Jason
  • 489
  • 2
  • 8
  • 19
25
votes
1 answer

What is the difference between "dnf history rollback" and "dnf history undo"?

Let's read the official documentation: dnf history rollback Undo all transactions performed after the specified transaction. If it is not possible to undo any transaction due to the current state of RPMDB, do not undo any…
Andrew Savinykh
  • 409
  • 1
  • 5
  • 12
25
votes
2 answers

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.x86_64.rpm: hdr blob(2060952): BAD, read returned…
kolonel
  • 351
  • 1
  • 3
  • 3
24
votes
2 answers

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 (/usr)?/s?bin, settings go in /etc and so…
einpoklum
  • 8,772
  • 19
  • 65
  • 129
19
votes
7 answers

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 want to accomplish something like this: $ dpkg…
maxschlepzig
  • 56,316
  • 50
  • 205
  • 279
19
votes
1 answer

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 download httpd fetches an rpm w/…
a tired guy
  • 318
  • 1
  • 2
  • 6
19
votes
3 answers

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 other mismatches). Is there an easy way to reinstall…
17
votes
3 answers

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 something. I know in general "you don't really want…
Mats Wichmann
  • 328
  • 2
  • 9
16
votes
4 answers

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)
marcin
  • 663
  • 8
  • 13
16
votes
4 answers

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 and get back firefox), and I have found many tutorials which say to simply do yum install bash-completion, but when I do this, I get…
sans
  • 263
  • 1
  • 2
  • 5
1
2 3
24 25