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: jabial on Mar 04, '08 07:50:36AM

The find -type f trick is good, but you also need to do another one with -type l to take into accound the symbolic links to the old man pages, which need to be removed also.

Personnally I used
<code>
sudo mkdir /usr/share/man/old
sudo find /usr/share/man -type f -exec test -e {}.gz \; -exec mv {} /usr/share/man/old \;
sudo find /usr/share/man -type l -exec test -e {}.gz \; -exec mv {} /usr/share/man/old \;
</code>

That way you can restore the files if the command fails - which I doubt if you copy it correctly. I'll delete the /usr/share/man/old directory after a month if I encounter no problems.



[ Reply to This | # ]