Installing "DejaVu Sans Mono" for emacs?

I have installed these:

$ dnf list | grep -i deja
dejavu-fonts-common.noarch                             2.35-7.el8                                                  @baseos   
dejavu-sans-mono-fonts.noarch                          2.35-7.el8                                                  @baseos   
bpg-dejavu-sans-fonts.noarch                           2.28-11.el8                                                 appstream 
dejavu-lgc-sans-fonts.noarch                           2.35-7.el8                                                  appstream 
dejavu-sans-fonts.noarch                               2.35-7.el8                                                  baseos    
dejavu-serif-fonts.noarch                              2.35-7.el8                                                  baseos    
$ 

But still no “DejaVu Sans Mono” visible in emacs.

(member "DejaVu Sans Mono" (font-family-list))

returns nil.

Are you running text-mode Emacs? It seems to have empty font-family-list.

No I’m using the GUI version. nil is the return value of the member function indicating that there is no “DejaVu Sans Mono” in the list returned from the font-family-list function.

If I run the same on a different distro I get a non-nil value like this:

(member "DejaVu Sans Mono" (font-family-list))
("DejaVu Sans Mono" "STIX Two Text" "Nimbus Sans" "Nimbus Mono PS" "DejaVu Sans" "Nimbus Sans Narrow" "Misc Nil" "URW Bookman" "STIX Two Text" "DejaVu Sans" "Misc Fixed" "DejaVu Serif" ...)

Does that font show up in programs other than emacs?

Yes I can see it in e.g. Firefox. So the problem might be that emacs is default configured without access to some fonts or a font server.

There seem to be only be a small sub-set available in emacs:

(mapcar #'print (font-family-list))
"fixed"
"nil"
"fixed"
"nil"
"luxi mono"
"luxi sans"
"luxi serif"
"bitstream charter"
"courier 10 pitch"
"courier"
"helvetica"
"new century schoolbook"
"symbol"
"times"
"lucidatypewriter"
"charter"
"terminal"
"courier"
"helvetica"
"new century schoolbook"
"symbol"
"times"
"lucidatypewriter"
"charter"
"terminal"
"fixed"

The problem was that there was another more recent version of emacs in my path. This was built without freetype support. Using the older system provided emacs works.