Results 1 to 8 of 8

Thread: where to set MAN_PATH and INFO_PATH

  1. #1
    Join Date
    May 2006
    Beans
    32

    where to set MAN_PATH and INFO_PATH

    Hi,


    Where do I globally set/append MAN_PATH and INFO_PATH in an Ubuntu installation?


    TIA,

    Erik

  2. #2
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

  3. #3
    Join Date
    May 2006
    Beans
    32

    Re: where to set MAN_PATH and INFO_PATH

    Quote Originally Posted by dino99 View Post
    Sorry, but that post does not seem relevant. Am I missing something?

  4. #4
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: where to set MAN_PATH and INFO_PATH

    Quote Originally Posted by equaeghe View Post
    Sorry, but that post does not seem relevant. Am I missing something?
    this post is about "installation", which is what you ask for.

  5. #5
    Join Date
    May 2006
    Beans
    32

    Re: where to set MAN_PATH and INFO_PATH

    Quote Originally Posted by dino99 View Post
    this post is about "installation", which is what you ask for.
    The word installation appears in my post, but it is not about installation.
    Did you read it or was it an automated reply or some such?
    Please, if you answer a post, do make sure it is on-topic: posts which already have replies (even though they are not useful or to the point) get looked at less.

  6. #6
    Join Date
    Feb 2010
    Location
    Silicon Valley
    Beans
    1,898
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: where to set MAN_PATH and INFO_PATH

    First off, you can set global environment variables in the /etc/environment file.

    On the MANPATH (no underscore) variable, you should read the manpath(1) man page to understand the format of MANPATH, since it can either override the standard configuration or append to it, based on the format. See also the manpath(5) man page to understand the /etc/manpath.config file.

    Sorry, can't help on the INFO part.

  7. #7
    Join Date
    Apr 2010
    Beans
    5

    Re: where to set MAN_PATH and INFO_PATH

    as said above running manpath will tell you what your current $MANPATH is if you have one, and will assemble a "good' one if not. it does so by checking out the text file /etc/manpath.config

    so one way to add to your $MANPATH would be to edit this file.

    another TOTALLY KLUGEY way i was able to use this but also not dive into /etc/manpath.config was to just add two lines to /home/myself/.bashrc :

    MANPATH=`manpath`
    MANPATH=/your/new/manpath:$MANPATH

    i recommend first saving your original .bashrc file somewhere, like
    cp ~/.bashrc ~/.bashrc_orig

    you could probably do something similar for INFO_PATH but i'll probably get yelled at here for this already.

  8. #8
    Join Date
    May 2006
    Beans
    32

    Re: where to set MAN_PATH and INFO_PATH

    Dear gmargo & stephendlynch,

    Thanks for the help. I got the MANPATH fixed (man manpath was the way to go) and I stopped caring about INFOPATH. So I'm marking this solved.

Tags for this Thread

Bookmarks

Posting Permissions

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