I used Wireshark 3.2.2 Intel 64 to install Wireshark on macOS 10.15.3. And I installed ChmodBPF and Add Wireshark to the system path.

tshark work in Oh My Zsh with iTerm2:

 $ tshark -h
TShark (Wireshark) 3.2.2 (v3.2.2-0-ga3efece3d640)
Dump and analyze network traffic.
See https://www.wireshark.org for more information.

But man tshark does not work:

$ man tshark
No manual entry for tshak

Wireshark has been put into /etc/manpaths.d:

$ cat /etc/manpaths.d/Wireshark

But if I add /Applications/Wireshark.app/Contents/Resources/share/man to MANPATH, man tshark works:

$ echo $MANPATH
$ export MANPATH="$MANPATH:/Applications/Wireshark.app/Contents/Resources/share/man"
$ echo $MANPATH
$ man tshark
SHARK(1)                             The Wireshark Network Analyzer                             TSHARK(1)

       tshark - Dump and analyze network traffic

I also added /Library/TeX/Distributions/.DefaultTeX/Contents/Man to /etc/manpaths.d/TeX:

$ cat /etc/manpaths.d/TeX

man pdflatex works:

$ which pdflatex
$ man pdflatex
PDFTEX(1)                                                      PDFTEX(1)

       pdftex - PDF output from TeX

       pdftex [options] [&format] [file|\commands]

  • 1
    Apparently, what’s in manpaths.d will only be considered if any $MANPATH is set in the first place (during /etc/profile, I guess).
    – Daniel B
    Mar 1, 2020 at 12:11
  • Did you have MANPATH set initially?
    – nohillside
    Mar 2, 2020 at 7:20
  • Yes, I set MANPATH in .zshrc. I am using oh-my-zsh. Mar 4, 2020 at 7:21


You must log in to answer this question.

Browse other questions tagged .