CentOS で man が見れない場合は man-pages パッケージを再インストール
環境こんな感じ。vagrant の centos/7 です。
% uname -a Linux localhost.localdomain 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux % cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core)
CentOS で man がなぜか見れない場合、
% man ls No manual entry for ls
まずは man-pages
パッケージがインストールされてるかチェックして、
% rpm -q man-pages man-pages-3.53-5.el7.noarch
もしなければインストールで解決。
% sudo yum -y install man-pages
man-pages
パッケージはインストールされてても、含まれてるべきファイルが存在しない場合があるっぽい。
% rpm -ql man-pages | grep -w ls /usr/share/man/man1p/ls.1p.gz % ls /usr/share/man/man1p/ls.1p.gz ls: cannot access /usr/share/man/man1p/ls.1p.gz: No such file or directory
パッケージを再インストールしてやればOK。
% sudo yum reinstall -y man-pages
それでも man が見れないコマンドがあったら、
% man ionice No manual entry for ionice
そのコマンドのパッケージを特定して
% rpm -qf $(which ionice) util-linux-2.23.2-43.el7_4.2.x86_64
再インストールしたら見れるようになりました。
% sudo yum reinstall -y util-linux