I deleted the
/usr/share/man/man1 directory and wondered if there was a quick way to recover the manuals for the installed packages.
migrated from stackoverflow.com Jun 27 '11 at 0:14
This question came from our site for professional and enthusiast programmers.
Installing man page packages
According to here, you don't get a lot of man pages with the default Debian package selection. That guy said to run:
It looks like this page lists package names for various man page packages you can get.
Meta Packages / reconfigure
I'm generally an Ubuntu user over Debian, but they're quite related. For Ubuntu, I'd try something like:
In that case, 'ubuntu-desktop' in a meta package that defines the default packages to be installed with the desktop version of Ubuntu. There's got to be some debian equivalant.. perhaps "debian-desktop"? Maybe look in to that if you need to.
Good luck! Hope that helps!
The only way to restore all of those files will be to re-install any packages that had files installed there.
This command will show you a list of installed packages with files that belong in that directory:
Then you can re-install those (or just the ones you care about) with: