Sysadmin > SolarIs > BadlyFormattedManPages

badly formatted man pages under solaris

WORK IN PROGRESS

man pages of non solaris software is sometimes badly formatted, because the solaris nroff use limited macros (cannot understand mandoc).

Install and use groff instead of the original nroff

groff -mandoc -T ascii -t -P -c /usr/pkg/man/man1/pkg_info.1

You can put this into a script

#! /bin/sh
exec groff -Tlatin1 -mandoc -P -c "$@" | exec less

The others do not work

nroff -mandoc -Tlp /usr/pkg/man/man1/groff.1
man -M/usr/pkg/man -r -T-mandoc pkg_info

Alternatively install man form pkgsrc

  1. textproc/mdocml
  2. configure etc/man.conf
> cat /etc/man.conf
_default        /usr/man
_default        /usr/sfw/man
_default        /usr/pkg/man
_default        /usr/share/man
  1. run makewhatis