Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.5: View the new 'man' pages on upgraded systems' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: View the new 'man' pages on upgraded systems
Authored by: alanb1979 on Jan 23, '08 02:35:14PM

Actually I had the same problem as wscody where the man.tgz didn't show up. Turns out the z option that compresses the man pages was the problem. Maybe it is another fink conflict but I just bypassed it. The resulting man.tar file came out to about 40MB.

find /usr/share/man -exec test -e {}.gz \; -exec /usr/bin/tar -rvPf ~/man.tar {} \;

Now that the man files are all backed up, I want to verify that I indeed have both the old and new manuals. For example, the bash manual should be for bash 3, not 2.05. The following tells me there are 2 bash manuals the bash.1 modified 30-Mar-2005 while the bash.1.gz is from 23-Sep-2007.

ls -l /usr/share/man/man1/bash.*

-rw-r--r-- 1 root wheel 228193 Mar 20 2005 /usr/share/man/man1/bash.1
-rw-r--r-- 1 root wheel 70941 Sep 23 20:41 /usr/share/man/man1/bash.1.gz

Then, I did the following sequence, including the removal of the -type f as suggested by livanage.

sudo find /usr/share/man -exec test -e {}.gz \; -exec echo rm {} \;

sudo find /usr/share/man -exec test -e {}.gz \; -exec rm {} \;

Now to verify that the bash.1 file is gone.

ls -l /usr/share/man/man1/bash.*

-rw-r--r-- 1 root wheel 70941 Sep 23 20:41 /usr/share/man/man1/bash.1.gz

And man now uses the correct page.

man -w bash


hiedy hoo

[ Reply to This | # ]