Red Hat Enterprise Linux 10.0で以下のコマンドを実行したところ、適切な表示結果が得られなかったため、その対応をまとめました。
[user@RHEL100 ~]$ whatis man
man: 適切なものはありませんでした。
1週間でLPICの基礎が学べる本の64ページ
そもそもこの話題は以下の書籍の64ページで紹介されているwhatisコマンドを試したときに確認できました。
以下の画像のようになり、rootユーザーで試しても結果は変わりませんでした。


1週間でLPICの基礎が学べる本には、「あらかじめmakewhatisというコマンドを実行しておく必要があります。」とのことだったので「makewhatis」コマンドなるものを実行してみました。

するとなんということでしょう。コマンドが見つかりません。Red Hat Enterprise Linuxではデフォルトでこのコマンドを使えないようです。
そこでインターネットで以下のように検索しました。
[root@RHEL100 ~]# whatis whatis
whatis: 適切なものはありませんでした。
実際に実行した結果をそのままGoogleで検索しました。
するとrootユーザーでmandbコマンドを実行すれば改善するとの情報が確認できました。
【Linux】whatisコマンドが使えないときの対処法 - Qiita
はじめに Linuxのwhatisコマンドが使えなかったときに行った対処法を、備忘録として残しておきます。 エラー解消のヒントになれば幸いです。 whatisコマンドを使えるようにする手順 Linuxの勉強がてらプロンプトにコマンドを打ち込...
mandbコマンドをrootユーザーで実行する
実際にrootユーザーでmandbコマンドを実行してみます。

[root@RHEL100 ~]# mandb
/usr/share/man 配下のマニュアルページを処理しています...
パス `/usr/share/man/man7' の index キャッシュを更新しています。お待ちください...mandb: 警告: /usr/share/man/man7/podman-rootless.7.gz: whatis が podman-rootless(7) の解釈に失敗しました
mandb: 警告: /usr/share/man/man7/podman-troubleshooting.7.gz: whatis が podman-troubleshooting(7) の解釈に失敗しました
mandb: man7/groff_man.7 を解決できません
mandb: 警告: /usr/share/man/man7/man.man-pages.7.gz: シンボリックリンクまたは ROFF の `.so' 要求に誤りがあります
mandb: man7/groff_man.7 を解決できません
mandb: 警告: /usr/share/man/man7/man.7.gz: シンボリックリンクまたは ROFF の `.so' 要求 に誤りがあります
パス `/usr/share/man/man1' の index キャッシュを更新しています。お待ちください...mandb: 警告: /usr/share/man/man1/exiv2.1.gz: whatis が exiv2(1) の解釈に失敗しました
mandb: 警告: /usr/share/man/man1/lastb.1.gz: whatis が lastb(1) の解釈に失敗しました
パス `/usr/share/man/man5' の index キャッシュを更新しています。お待ちください...mandb: 警告: /usr/share/man/man5/ledmon.conf.5.gz: whatis が ledmon.conf(5) の解釈に失敗しました
パス `/usr/share/man/man8' の index キャッシュを更新しています。お待ちください...mandb: 警告: /usr/share/man/man8/cryptsetup-tcryptOpen.8.gz: whatis が cryptsetup-tcryptOpen(8) の解釈に失敗しました
mandb: 警告: /usr/share/man/man8/swapoff.8.gz: whatis が swapoff(8) の解釈に失敗しました
mandb: 警告: /usr/share/man/man8/cryptsetup-bitlkOpen.8.gz: whatis が cryptsetup-bitlkOpen(8) の解釈に失敗しました
mandb: 警告: /usr/share/man/man8/cryptsetup-create.8.gz: whatis が cryptsetup-create(8) の解釈に失敗しました
mandb: 警告: /usr/share/man/man8/cryptsetup-fvault2Open.8.gz: whatis が cryptsetup-fvault2Open(8) の解釈に失敗しました
mandb: 警告: /usr/share/man/man8/cryptsetup-loopaesOpen.8.gz: whatis が cryptsetup-loopaesOpen(8) の解釈に失敗しました
mandb: 警告: /usr/share/man/man8/cryptsetup-luksErase.8.gz: whatis が cryptsetup-luksErase(8) の解釈に失敗しました
mandb: 警告: /usr/share/man/man8/cryptsetup-luksOpen.8.gz: whatis が cryptsetup-luksOpen(8) の解釈に失敗しました
mandb: 警告: /usr/share/man/man8/cryptsetup-plainOpen.8.gz: whatis が cryptsetup-plainOpen(8) の解釈に失敗しました
mandb: man8/tc-cbq.8 を解決できません
mandb: 警告: /usr/share/man/man8/cbq.8.gz: シンボリックリンクまたは ROFF の `.so' 要求 に誤りがあります
mandb: 警告: /usr/share/man/man8/ledctl.8.gz: whatis が ledctl(8) の解釈に失敗しました
mandb: 警告: /usr/share/man/man8/ledmon.8.gz: whatis が ledmon(8) の解釈に失敗しました
パス `/usr/share/man/man3type' の index キャッシュを更新しています。お待ちください...完了しました。
/usr/share/man 配下の roff がない cat ファイルをチェックしています...
/var/cache/man 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/cs 配下のマニュアルページを処理しています...
パス `/usr/share/man/cs/man7' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/cs 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/cs 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/da 配下のマニュアルページを処理しています...
パス `/usr/share/man/da/man8' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/da 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/da 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/de 配下のマニュアルページを処理しています...
パス `/usr/share/man/de/man7' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/de 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/de 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/fr 配下のマニュアルページを処理しています...
パス `/usr/share/man/fr/man7' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/fr 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/fr 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/hu 配下のマニュアルページを処理しています...
パス `/usr/share/man/hu/man8' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/hu 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/hu 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/id 配下のマニュアルページを処理しています...
パス `/usr/share/man/id/man5' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/id 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/id 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/it 配下のマニュアルページを処理しています...
パス `/usr/share/man/it/man8' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/it 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/it 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/ja 配下のマニュアルページを処理しています...
パス `/usr/share/man/ja/man7' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/ja 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/ja 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/ko 配下のマニュアルページを処理しています...
パス `/usr/share/man/ko/man7' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/ko 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/ko 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/pl 配下のマニュアルページを処理しています...
パス `/usr/share/man/pl/man5' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/pl 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/pl 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/pt_BR 配下のマニュアルページを処理しています...
パス `/usr/share/man/pt_BR/man8' の index キャッシュを更新しています。お待ちください...完了しました。
/usr/share/man/pt_BR 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/pt_BR 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/ru 配下のマニュアルページを処理しています...
パス `/usr/share/man/ru/man7' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/ru 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/ru 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/sv 配下のマニュアルページを処理しています...
パス `/usr/share/man/sv/man7' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/sv 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/sv 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/tr 配下のマニュアルページを処理しています...
パス `/usr/share/man/tr/man7' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/tr 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/tr 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/uk 配下のマニュアルページを処理しています...
パス `/usr/share/man/uk/man7' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/uk 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/uk 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/zh_CN 配下のマニュアルページを処理しています...
パス `/usr/share/man/zh_CN/man8' の index キャッシュを更新しています。お待ちください...完了しました。
/usr/share/man/zh_CN 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/zh_CN 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/zh_TW 配下のマニュアルページを処理しています...
パス `/usr/share/man/zh_TW/man8' の index キャッシュを更新しています。お待ちください...完了しました。
/usr/share/man/zh_TW 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/zh_TW 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/ro 配下のマニュアルページを処理しています...
パス `/usr/share/man/ro/man8' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/ro 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/ro 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/hr 配下のマニュアルページを処理しています...
パス `/usr/share/man/hr/man1' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/hr 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/hr 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/sr 配下のマニュアルページを処理しています...
パス `/usr/share/man/sr/man8' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/sr 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/sr 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/es 配下のマニュアルページを処理しています...
パス `/usr/share/man/es/man1' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/es 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/es 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/nl 配下のマニュアルページを処理しています...
パス `/usr/share/man/nl/man1' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/nl 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/nl 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/ca 配下のマニュアルページを処理しています...
パス `/usr/share/man/ca/man5' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/ca 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/ca 配下の roff がない cat ファイルをチェックしています...
/usr/share/man/pt 配下のマニュアルページを処理しています...
パス `/usr/share/man/pt/man5' の index キャッシュを更新しています。お待ちください...完了 しました。
/usr/share/man/pt 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/pt 配下の roff がない cat ファイルをチェックしています...
/usr/local/share/man 配下のマニュアルページを処理しています...
パス `/usr/local/share/man/mann' の index キャッシュを更新しています。お待ちください...完了しました。
/usr/local/share/man 配下の roff がない cat ファイルをチェックしています...
/var/cache/man/local 配下の roff がない cat ファイルをチェックしています...
130 個のマニュアルページ子ディレクトリに新しいマニュアルページが含まれていました。
7678 個のマニュアルページが追加されました。
0 の迷子の cat が追加されました。
0 個の古いデータベース要素が除去されました。
[root@RHEL100 ~]#
問題なく実行できました。
この状態でwhatis コマンドを実行してみます。
whatis コマンドの実行
mandbコマンドをrootユーザーで実行した後に、whatisコマンドでpasswdを確認してみました。問題なくコマンドが実行できました。
[root@RHEL100 ~]# whatis passwd
passwd (1) - ユーザパスワードを変更する
passwd (1ossl) - OpenSSL application commands
passwd (5) - password file
[root@RHEL100 ~]#
