A fresh installation of OpenSUSE Tumbleweed distribution may come without the man ls
to ask for the manual page of the command ls
will always return “command not found” or “No manual entry”.
To solve such errors, you need to install the man
tool with the corresponding manual pages package and configure zypper
(the default package manager) to not exclude the documentation during installation of any new package.
In the case you receive “the command is not found” error, the firs thing you need to do is install the Linux manual pages, the POSIX manual pages, and the tool to display both pages. The following command installs these three packages:
sudo zypper install man-pages man-pages-posix man
However, the error “No manual entry” may still appear. The problem here is that the configuration file /etc/zypp/zypp.conf excludes any documentation file from being installed when zypper
installs a package. To fix thisproblem, you have to edit that configuration file and set the boolean excludedocs
to no.
It must be noted that you need root privileges to edit the configuration file. Use either
nano
orvim
with superuser power.
## Options for package installation: excludedocs#### Don't install any files which are marked as documentation.#### Valid values: boolean## Default value: yes##rpm.install.excludedocs = no # <--- No exclude of documentation
Now, proceed by forcing the re-installation of the manual pages:
sudo zypper install --force man man-pages man-pages-posix
It should work right now! The man
tool displays the manual page and you can check the results using the following command:
man ls