Changing man path when having multiple man files from daemons with the same name
When having multiple man files from multiple daemons with the same name (ie: /usr/share/man/man8/tftpd.8.gz from freebsd stock tftpd daemon and /usr/local/man/man8/tftpd.8.gz from yale-tftpd packet), the
man tftpd command will show the content of the default tftpd.8.gz man page (/usr/share/man/man8/tftpd.8.gz).
Code:
# pkg_info -L freebsd*; pkg_info -L yale*
Information for freebsd-tftp-1.0:
Files:
/usr/bin/tftp
/usr/libexec/tftpd
/usr/share/man/man1/tftp.1.gz
/usr/share/man/man8/tftpd.8.gz
Information for yale-tftpd-3.0:
Files:
/usr/local/libexec/tftpd
/usr/local/man/man8/tftpd.8.gz
If you want to see the man page from yale-tftpd (/usr/local/man/man8/tftpd.8.gz), you can change the
$MANPATH variable like so:
Code:
# export MANPATH=/usr/local/man
# man tftpd
...
_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com