Find the answer to your Linux question:
Results 1 to 5 of 5
Hello all, I am new to this forum. I am just having alittle trouble accessing the man pages. I am using Linux Redhat. from the root drive I simply try ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2012
    Posts
    8

    Can't access man pages..


    Hello all, I am new to this forum. I am just having alittle trouble accessing the man pages. I am using Linux Redhat.
    from the root drive I simply try to do a man on ls and I get

    bash: man:command not found

    That happens with everything I do: Man command not found.

    The commands are there because when i do "which ls "i get

    /bin/ls

    Maybe my Path is not right. I typed it out for you to see:

    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

    I even type man man , and get
    bash: man: command not found

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by sandystorm View Post
    I even type man man , and get
    bash: man: command not found
    Hello and welcome!

    You need to install the man program before you can read the man pages. If you have a RHN login and an internet connection, you can do
    Code:
    yum install man
    Otherwise, you can install it from the original installation media.

  3. #3
    Just Joined!
    Join Date
    Oct 2012
    Posts
    8
    Quote Originally Posted by atreyu View Post
    Hello and welcome!

    You need to install the man program before you can read the man pages. If you have a RHN login and an internet connection, you can do
    Code:
    yum install man
    Otherwise, you can install it from the original installation media.
    Hi, I don't have internet connection.
    I have the Installation disk. If you can, how would I install the man pages from the install CD. I'm not sure

  4. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Insert the CD and mount it, like this:

    1) open a Terminal (via the "start" menu across the top or bottom of the desktop). you can also invoke a "run" box by pressing Alt+F2. into it you would type "gnome-terminal" and press OK (or whatever).


    2) su to the root user
    Code:
    su -
    you'll be prompted to enter the root password

    3) make sure a mount point for the CD exists:
    Code:
    mkdir -p /mnt/cdrom
    4) attempt to mount the CD:
    Code:
    mount -t iso9660 -o ro /dev/cdrom /mnt/cdrom
    now you should list the contents of the CD with the "ls" command:
    Code:
    ls /mnt/cdrom
    now look for the man RPM:
    Code:
    find /mnt/cdrom/ -type f -name 'man-*.rpm'
    hopefully you'll find something like:

    Code:
    /mnt/cdrom/RPMS/man-db-2.6.0.2-6.fc17.i686.rpm
    then install it like this:
    Code:
    yum localinstall /mnt/cdrom/RPMS/man-db-2.6.0.2-6.fc17.i686.rpm
    you might need some dependency RPM packages, too. it might be easier to set up the CD as a temporary local yum repo...but try the yum command as is, first.

  5. #5
    Just Joined!
    Join Date
    Oct 2012
    Posts
    8
    Quote Originally Posted by atreyu View Post
    Insert the CD and mount it, like this:

    1) open a Terminal (via the "start" menu across the top or bottom of the desktop). you can also invoke a "run" box by pressing Alt+F2. into it you would type "gnome-terminal" and press OK (or whatever).


    2) su to the root user
    Code:
    su -
    you'll be prompted to enter the root password

    3) make sure a mount point for the CD exists:
    Code:
    mkdir -p /mnt/cdrom
    4) attempt to mount the CD:
    Code:
    mount -t iso9660 -o ro /dev/cdrom /mnt/cdrom
    now you should list the contents of the CD with the "ls" command:
    Code:
    ls /mnt/cdrom
    now look for the man RPM:
    Code:
    find /mnt/cdrom/ -type f -name 'man-*.rpm'
    hopefully you'll find something like:

    Code:
    /mnt/cdrom/RPMS/man-db-2.6.0.2-6.fc17.i686.rpm
    then install it like this:
    Code:
    yum localinstall /mnt/cdrom/RPMS/man-db-2.6.0.2-6.fc17.i686.rpm
    you might need some dependency RPM packages, too. it might be easier to set up the CD as a temporary local yum repo...but try the yum command as is, first.
    Thank you for the info. I will give this a try and see what happens. Thanks again for your reply, and help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •