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: liyanage on Dec 13, '07 10:15:56AM

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 Dec 13, '07 10:17:11AM

That's ~/Library/Caches/Bwana...



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

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 Dec 13, '07 07:50:16PM
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 | # ]