Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,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 whomever posted them. This site is not responsible for what they say.
10.5: View the new 'man' pages on upgraded systems
Authored by: liyanage on Thu, Dec 13 2007 at 10:15AM PST

This command will give a list of the commands required to remove the old files:

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

If you are happy with the results, you can remove the "echo" to delete the files. I did just that on my machine and now I'm fine.

Thanks for this hint. I was wondering why man bash and Bwana were still showing the man page for bash version 2.05 instead of 3 (Bwana also required cleaning of its cache dir ~/Library/Caches).



[ Reply to This | # ]
10.5: View the new 'man' pages on upgraded systems
Authored by: liyanage on Thu, Dec 13 2007 at 10:17AM PST
That's ~/Library/Caches/Bwana...

[ Reply to This | # ]
10.5: View the new 'man' pages on upgraded systems
Authored by: liyanage on Thu, Dec 13 2007 at 11:39AM PST

Another correction, the -type f needs to go, lots of old symbolic links are missed otherwise.

That makes it

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

[ Reply to This | # ]
10.5: View the new 'man' pages on upgraded systems
Authored by: richwiss on Thu, Dec 13 2007 at 7:50PM PST
Before you delete all the files, you can save them all in a tar archive:

sudo find /usr/share/man -exec test -e {}.gz \; -exec tar --absolute-names -rzvf ~/man.tgz {} \;

I should note that I had no problems running this command without leading sudo, so you may wish to omit that.

There might be a smarter way to first list all the files and then form the archive, but this only took 1 minute and 41 seconds.

If you ever need to restore: tar xzf ~/man.tgz will put them all back.

[ Reply to This | # ]