Ask Your Question

How do I list the manpages associated with DNF from the command-line?

asked 2015-12-01 09:23:25 -0500

updated 2015-12-01 09:26:37 -0500

I am writing a blog post that will compare the various Linux distributions and *BSDs I have any significant experience with, including Fedora, and I am hosting several man pages (in HTML format) for the various package managers of said distros/*BSDs within my blog's GitHub repository. To generate the man pages in HTML I am using shell functions such as those contained in this script. For Fedora I know of the dnf(8) manpage, but I was wondering if I can use dnf (and perhaps other commands such as grep) to determine the location of the other man pages associated with DNF. For example, on Arch Linux I used:

sudo pacman -Qlq pacman | grep /usr/share/man

to determine the man pages associated with pacman. Is something like this possible for DNF?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-12-01 09:55:47 -0500

Turns out that I could do this using RPM, without any need for dnf at all. Specifically the command:

rpm -ql dnf | grep /usr/share/man

told me that other than dnf(8) there was one other manpage associated with DNF, yum2dnf(8). Turns out that I did not even need root privileges to run this command correctly.

edit flag offensive delete link more


To make a query with pacman you needed root privileges?

skytux gravatar imageskytux ( 2015-12-01 10:46:47 -0500 )edit

see also rpm -qd dnf for documentation from the dnf package, and apropos dnf for documentation related to dnf, but not necessarily the dnf package.

randomuser gravatar imagerandomuser ( 2015-12-02 00:15:19 -0500 )edit

@skytux I thought I did, but I could be wrong. @randomuser thanks.

Brenton Horne gravatar imageBrenton Horne ( 2015-12-02 07:34:39 -0500 )edit

Question Tools

1 follower


Asked: 2015-12-01 09:23:25 -0500

Seen: 157 times

Last updated: Dec 01 '15