LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   man command not found on a Fresh Installation of RHEL 5 (http://www.linuxquestions.org/questions/linux-server-73/man-command-not-found-on-a-fresh-installation-of-rhel-5-a-751574/)

Hi_This_is_Dev 08-31-2009 02:35 PM

man command not found on a Fresh Installation of RHEL 5
 
Hi,


This evening I reinstalled RHEL 5 on my system and as I was in a hurry leaving for office so I could not check whether the installation was properly done or not. So, I just tried some commands to see if it was functioning properly. When I tried the following command:

man ls


there was an error saying that the command was not found. So, I take it for granted that man pages ddin't get installed...? I tried man command with some other 1 or 2 commands but it didn't work. Should I install RHEL 5 again? (Oh! I am tired now!)


Is there anyway to verify whether Linux has been properly installed or not with all its functionalities and features/options selected at installation time?

MensaWater 08-31-2009 02:51 PM

It may be the man command simply isn't in your PATH.

Type "rpm -q man" to see if the man package is installed. This is the one that gives you the man command itself. The actually man pages come from various other packages (e.g. There are several man pages that come with the bash package.)

A lot of the basic man pages are in a package called "man-pages". Typing "rpm -q man-pages" should let you know if it is installed.

Hi_This_is_Dev 08-31-2009 03:43 PM

Okay, I will try that and post my finding here. Thanks!

Hi_This_is_Dev 09-02-2009 07:39 AM

Well, I reinstalled RHEL. Anyways, thanks for the the info!

Quote:

Originally Posted by jlightner (Post 3664403)
It may be the man command simply isn't in your PATH.

Type "rpm -q man" to see if the man package is installed. This is the one that gives you the man command itself. The actually man pages come from various other packages (e.g. There are several man pages that come with the bash package.)

A lot of the basic man pages are in a package called "man-pages". Typing "rpm -q man-pages" should let you know if it is installed.


MensaWater 09-02-2009 07:44 AM

If you had successfully installed previously AND registered on RedHat Network you can add packages with the yum command instead of reinstalling.
(Late information I know - just hoping to save you from another reinstall if you find something else missing.)

e.g. yum install man or yum install man-pages

akshay.narvekarr 12-15-2013 05:05 AM

to enable man command in centos_6.2
 
firstly ensure that centos image is available on dvd drive then try below commands
cd /dev/
cd /dvdrw
mount /dev/dvdrw /mnt/
cd..
cd /mnt/
cd Packages/
rpm -ivh man-pages-cs-0.8.20090209-2.1.e16.noarch.rpm
rpm -ivh man-pages-es-1.55-14.e16.noarch.rpm
rpm -ivh man-pages-es-extra-1.55-14.e16.noarch.rpm
rpm -ivh xz-4.999.9-0.9.beta.20091007git.e16.i686.rpm
rpm -ivh xz-lzma-compat-4.999.9-0.3.beta.20091007git.e16.i686.rpm
rpm -ivh man-pages-3.22-7.e16.noarch.rpm
rpm -ivh man-1.6f-29.el6.i686.rpm

then atlast confirm
man cp


All times are GMT -5. The time now is 04:53 AM.