Gentoo Archives: gentoo-user

From: Benno Schulenberg <benno.schulenberg@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Cleaning up multiple man pages (how?)
Date: Fri, 18 Aug 2006 13:02:02
Message-Id: 200608181456.36944.benno.schulenberg@gmail.com
In Reply to: [gentoo-user] Cleaning up multiple man pages (how?) by Kevin O'Gorman
1 Kevin O'Gorman wrote:
2 > I've noticed that the whereis(1) command gives multiple results
3 > for some queries. For instance, "whereis lilo" gives me
4 >
5 > kevin@treat ~ $ whatis lilo
6
7 Ehm... 'whatis' is not 'whereis'. But leaving that aside, have a
8 look at your MANPATH: echo $MANPATH. If it contains repeated
9 entries, you may have to clean up /etc/env.d a bit: cd /etv/env.d/
10 and grep MANPATH *, prune the identical repetitions, then run
11 env-update, re-login and run makewhatis.
12
13 Also have a look at /etc/man.conf. The NOAUTOPATH keyword is
14 probably needed. Check with:
15
16 # grep -v ^# /etc/man.conf
17 FHS
18
19 MANPATH /usr/share/man
20 MANPATH /usr/local/share/man
21
22
23 MANPATH_MAP /bin /usr/share/man
24 MANPATH_MAP /sbin /usr/share/man
25 MANPATH_MAP /usr/bin /usr/share/man
26 MANPATH_MAP /usr/sbin /usr/share/man
27 MANPATH_MAP /usr/local/bin /usr/local/share/man
28 MANPATH_MAP /usr/local/sbin /usr/local/share/man
29 MANPATH_MAP /usr/bin/mh /usr/share/man
30
31 NOAUTOPATH
32
33
34 TROFF /usr/bin/groff -Tps -mandoc
35 NROFF /usr/bin/nroff -Tascii -c -mandoc
36 JNROFF /usr/bin/groff -Tnippon -mandocj
37 EQN /usr/bin/geqn -Tps
38 NEQN /usr/bin/geqn -Tlatin1
39 JNEQN /usr/bin/geqn -Tnippon
40 TBL /usr/bin/gtbl
41 REFER /usr/bin/refer
42 PIC /usr/bin/pic
43 VGRIND
44 GRAP
45 PAGER /usr/bin/less -is
46 BROWSER /usr/bin/less -is
47 HTMLPAGER /bin/cat
48 CAT /bin/cat
49
50 CMP /usr/bin/cmp -s
51
52 COMPRESS /bin/cat
53 COMPRESS_EXT .F
54
55 MANSECT 1:1p:8:2:3:3p:4:5:6:7:9:0p:tcl:n:l:p:o:1x:2x:3x:4x:5x:6x:7x:8x
56
57
58 .gz /bin/gunzip -c
59 .bz2 /bin/bzip2 -c -d
60 .z
61 .Z /bin/zcat
62 .F
63 .Y
64
65
66 # whatis man
67 man (1) - format and display the on-line manual pages
68 man (1p) - display system documentation
69 man (7) - macros to format man pages
70 man.conf [man] (5) - configuration data for man
71
72 To get rid of the multiple reports by 'whereis', apply the attached
73 patch in an overlay to util-linux. It removes from the whereis
74 search path the dirs that on my system are symlinks.
75
76 # whereis man
77 man: /usr/bin/man /etc/man.conf /usr/local/man /usr/share/man /usr/share/man/man1/man.1.gz /usr/share/man/man7/man.7.gz /usr/share/man/man1p/man.1p.gz
78
79 Benno
80
81 --
82 Cetere mi opinias ke ne ĉio tradukenda estas.

Attachments

File name MIME type
util-linux--whereis-remove-symlinks.patch text/x-diff