CentOSにマニュアルページをインストールする方法は?

CentOSにマニュアルページをインストールする方法は?

メモ:これはCentos 7で動作します。 Debian の回答をお探しの場合は、次をご覧ください。この問題。これらの答えはここでは繰り返されません。

centos 7をインストールした後、マニュアルページにアクセスできません。

# man ls
-bash: man: command not found

yumでインストールしました。

# yum install man-pages
... ok

しかし再び:

# man ls
-bash: man: command not found

なぜ?

ベストアンサー1

manコマンドを使用するには、コマンドのman前後にパッケージもインストールする必要があります。man-pages

# yum install man-pages
... ok
# yum install man
... ok

manインストールされました

# man ls


NAME
      ls - list directory contents

SYNOPSIS
      ls [OPTION]... [FILE]...

DESCRIPTION
      List information about the FILEs (the current directory by default).  Sort entries alphabetically if none of -cftuvSUX nor --sort.

      Mandatory arguments to long options are mandatory for short options too. ...

おすすめ記事