Ask Your Question

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

asked 2015-12-01 15:23:25 +0000

BH2017 gravatar image

updated 2015-12-01 15:26:37 +0000

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 15:55:47 +0000

BH2017 gravatar image

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 ( 2015-12-01 16:46:47 +0000 )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 ( 2015-12-02 06:15:19 +0000 )edit

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

BH2017 ( 2015-12-02 13:34:39 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2015-12-01 15:23:25 +0000

Seen: 129 times

Last updated: Dec 01 '15