Where should I install manual pages in user directory?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
10
down vote

favorite
4












I'm trying to create a Makefile for a small Perl utility I wrote, And I'm struggling to find out a way to find where to install my man page when make is run as a non-root user.



I'm currently parsing the output of manpath to find out the first path in the $HOME directory… and it almost work fine.



Paths I've found are ~/man and ~/share/man



The only problem is that if those directories don't exist in the first place, manpath doesn't output any of them.



Questions



  • Is there a portable way to find out where I should install the man pages in the user's $HOME directory?

  • If not, which one of them should be preferred?









share|improve this question



























    up vote
    10
    down vote

    favorite
    4












    I'm trying to create a Makefile for a small Perl utility I wrote, And I'm struggling to find out a way to find where to install my man page when make is run as a non-root user.



    I'm currently parsing the output of manpath to find out the first path in the $HOME directory… and it almost work fine.



    Paths I've found are ~/man and ~/share/man



    The only problem is that if those directories don't exist in the first place, manpath doesn't output any of them.



    Questions



    • Is there a portable way to find out where I should install the man pages in the user's $HOME directory?

    • If not, which one of them should be preferred?









    share|improve this question

























      up vote
      10
      down vote

      favorite
      4









      up vote
      10
      down vote

      favorite
      4






      4





      I'm trying to create a Makefile for a small Perl utility I wrote, And I'm struggling to find out a way to find where to install my man page when make is run as a non-root user.



      I'm currently parsing the output of manpath to find out the first path in the $HOME directory… and it almost work fine.



      Paths I've found are ~/man and ~/share/man



      The only problem is that if those directories don't exist in the first place, manpath doesn't output any of them.



      Questions



      • Is there a portable way to find out where I should install the man pages in the user's $HOME directory?

      • If not, which one of them should be preferred?









      share|improve this question















      I'm trying to create a Makefile for a small Perl utility I wrote, And I'm struggling to find out a way to find where to install my man page when make is run as a non-root user.



      I'm currently parsing the output of manpath to find out the first path in the $HOME directory… and it almost work fine.



      Paths I've found are ~/man and ~/share/man



      The only problem is that if those directories don't exist in the first place, manpath doesn't output any of them.



      Questions



      • Is there a portable way to find out where I should install the man pages in the user's $HOME directory?

      • If not, which one of them should be preferred?






      man






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 15 '13 at 14:10









      slm♦

      240k66499668




      240k66499668










      asked Sep 15 '13 at 13:34









      Romuald Brunet

      15316




      15316




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          12
          down vote



          accepted










          You can put the man pages in this directory:



          $HOME/.local/share/man


          Accessing directly



          And then you can access them directly using man:



          man $HOME/.local/share/man/manX/manpage.1.gz


          $MANPATH



          You can check what the $MANPATH is with the command manpath, or echo out the environment variable $MANPATH.



          Examples



          $ manpath
          manpath: warning: $MANPATH set, ignoring /etc/man_db.conf
          /home/saml/apps/perl5/perlbrew/perls/perl-5.14.0/man:/home/saml/.rvm/rubies/ruby-1.9.2-p180/share/man:/home/saml/.rvm/man:/usr/local/share/man:/usr/share/man:/usr/brlcad/share/man:/usr/man:/usr/brlcad/share/man:/usr/brlcad/share/man

          $ echo $MANPATH
          /home/saml/apps/perl5/perlbrew/perls/perl-5.14.0/man:/home/saml/.rvm/rubies/ruby-1.9.2-p180/share/man:/home/saml/.rvm/man:/usr/local/share/man:/usr/share/man:/usr/brlcad/share/man:/usr/man:/usr/brlcad/share/man:/usr/brlcad/share/man


          You can add things to the MANPATH temporarily:



          MANPATH=$HOME/.local/share/man:$MANPATH


          If you want to make this permanent then add a file in your /etc/profile.d/ directory called myman.bash with the above MANPATH= line in it. This will get picked up system wide for everyone. If you want it to be just for you, then add it to your $HOME/.bash_profile or $HOME/.bashrc.






          share|improve this answer
















          • 2




            To suppress manpath warnings about MANPATH being set, you can pass the -q option.
            – Joseph R.
            Sep 15 '13 at 14:46










          • Yes, I know that I can tell to man where to look. I'm looking for a generic, portable way for an generic installation (ie: where is man looking on a standard configuration)
            – Romuald Brunet
            Sep 17 '13 at 13:02










          • Do an echo $MANPATH and see what that shows. Those are good places to start looking, or use the manpath command as I showed in my answer.
            – slm♦
            Sep 17 '13 at 13:03


















          up vote
          0
          down vote













          Answer with desciption



          I am running Cygwin on Windows 7. When I try



          echo $MANPATH


          I get nothing. Here is my portable way of finding where to put new man pages.



          $ 
          grep -v 'Permission denied' >&3; 3>&2 2>&1


          (A note on that crazy command is at the bottom of this answer.)



          You could simply replace / with ~. Another possibility is under the Another note section below.



          On my machine, the find command returned:



           /etc/openwsman
          /lib/filemanager-actions
          /lib/gnome-commander
          /lib/help2man
          /lib/window-manager-settings
          /share/man
          /usr/man


          To me, that meant there were two possibilities: /share/man and /usr/man.



          I chose to use /usr/man, which you wouldn't, but I needed to do some more exploring.



          $ ls -l /usr/man
          total 0
          drwxr-xr-x+ 1 me Users 0 April 31 17:13 man1


          So, where I had the new man files in a doc/ sub-directory of my working directory, I used



          $ cp -R doc/* /usr/man/man1


          Now, I could get to my "manual" by typing



          $ man my_new_executable


          If you don't see a likely candidate, you can remove this part or change it, e.g. to -maxdepth 3, or 4, or 5, or however deep it takes to find what you need. When I did so with 3, I found two other candidates, /var/cache/man and usr/share/man , but I had already found a working solution, so I didn't mess with them.




          Another note



          I believe that /share/man/man1 or /var/cache/man would be available to non-root users, as you had requested. Please, correct me if I am wrong.




          The promised note at the bottom



          Note that I used the -maxdepth 2 option with find, because I figured that the man directory would be within two directories of the file system root, and I did not want to get too many extraneous directories that somehow had the substring man, as did /lib/gnome-comander.



          The extra stuff around the find is there to suppress any Permission denied errors in case you don't have access to su or sudo. Here is a great description of what's happening. (Look for the line that starts with "gniourf_gniourf".)






          share|improve this answer





























            up vote
            0
            down vote













            I have installed a few apps that I compiled, with the respective configures set for installing in $HOME/usr/local.



            I find now that I have directories



            ~/usr/local/share/man/man1
            ~/usr/local/share/man/man3
            ~/usr/local/share/man/man5


            with manpages gnuplot.1, gnuplot-ja.1, python3.1, python3.5.1, libpng.3, libpngpf.3, zlib.3, png.5, so I guess it is a pretty standard location for apps installed locally.



            It is then a candidate location for the cases where one has to choose manually the local man directory.



            Of course, one can add arbitrary paths (and should do it even in the usual just case mentioned) for man pages with



            export MANPATH="$HOME/usr/local/share/man$MANPATH:+:$MANPATH"


            (see this).





            share




















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f90759%2fwhere-should-i-install-manual-pages-in-user-directory%23new-answer', 'question_page');

              );

              Post as a guest






























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              12
              down vote



              accepted










              You can put the man pages in this directory:



              $HOME/.local/share/man


              Accessing directly



              And then you can access them directly using man:



              man $HOME/.local/share/man/manX/manpage.1.gz


              $MANPATH



              You can check what the $MANPATH is with the command manpath, or echo out the environment variable $MANPATH.



              Examples



              $ manpath
              manpath: warning: $MANPATH set, ignoring /etc/man_db.conf
              /home/saml/apps/perl5/perlbrew/perls/perl-5.14.0/man:/home/saml/.rvm/rubies/ruby-1.9.2-p180/share/man:/home/saml/.rvm/man:/usr/local/share/man:/usr/share/man:/usr/brlcad/share/man:/usr/man:/usr/brlcad/share/man:/usr/brlcad/share/man

              $ echo $MANPATH
              /home/saml/apps/perl5/perlbrew/perls/perl-5.14.0/man:/home/saml/.rvm/rubies/ruby-1.9.2-p180/share/man:/home/saml/.rvm/man:/usr/local/share/man:/usr/share/man:/usr/brlcad/share/man:/usr/man:/usr/brlcad/share/man:/usr/brlcad/share/man


              You can add things to the MANPATH temporarily:



              MANPATH=$HOME/.local/share/man:$MANPATH


              If you want to make this permanent then add a file in your /etc/profile.d/ directory called myman.bash with the above MANPATH= line in it. This will get picked up system wide for everyone. If you want it to be just for you, then add it to your $HOME/.bash_profile or $HOME/.bashrc.






              share|improve this answer
















              • 2




                To suppress manpath warnings about MANPATH being set, you can pass the -q option.
                – Joseph R.
                Sep 15 '13 at 14:46










              • Yes, I know that I can tell to man where to look. I'm looking for a generic, portable way for an generic installation (ie: where is man looking on a standard configuration)
                – Romuald Brunet
                Sep 17 '13 at 13:02










              • Do an echo $MANPATH and see what that shows. Those are good places to start looking, or use the manpath command as I showed in my answer.
                – slm♦
                Sep 17 '13 at 13:03















              up vote
              12
              down vote



              accepted










              You can put the man pages in this directory:



              $HOME/.local/share/man


              Accessing directly



              And then you can access them directly using man:



              man $HOME/.local/share/man/manX/manpage.1.gz


              $MANPATH



              You can check what the $MANPATH is with the command manpath, or echo out the environment variable $MANPATH.



              Examples



              $ manpath
              manpath: warning: $MANPATH set, ignoring /etc/man_db.conf
              /home/saml/apps/perl5/perlbrew/perls/perl-5.14.0/man:/home/saml/.rvm/rubies/ruby-1.9.2-p180/share/man:/home/saml/.rvm/man:/usr/local/share/man:/usr/share/man:/usr/brlcad/share/man:/usr/man:/usr/brlcad/share/man:/usr/brlcad/share/man

              $ echo $MANPATH
              /home/saml/apps/perl5/perlbrew/perls/perl-5.14.0/man:/home/saml/.rvm/rubies/ruby-1.9.2-p180/share/man:/home/saml/.rvm/man:/usr/local/share/man:/usr/share/man:/usr/brlcad/share/man:/usr/man:/usr/brlcad/share/man:/usr/brlcad/share/man


              You can add things to the MANPATH temporarily:



              MANPATH=$HOME/.local/share/man:$MANPATH


              If you want to make this permanent then add a file in your /etc/profile.d/ directory called myman.bash with the above MANPATH= line in it. This will get picked up system wide for everyone. If you want it to be just for you, then add it to your $HOME/.bash_profile or $HOME/.bashrc.






              share|improve this answer
















              • 2




                To suppress manpath warnings about MANPATH being set, you can pass the -q option.
                – Joseph R.
                Sep 15 '13 at 14:46










              • Yes, I know that I can tell to man where to look. I'm looking for a generic, portable way for an generic installation (ie: where is man looking on a standard configuration)
                – Romuald Brunet
                Sep 17 '13 at 13:02










              • Do an echo $MANPATH and see what that shows. Those are good places to start looking, or use the manpath command as I showed in my answer.
                – slm♦
                Sep 17 '13 at 13:03













              up vote
              12
              down vote



              accepted







              up vote
              12
              down vote



              accepted






              You can put the man pages in this directory:



              $HOME/.local/share/man


              Accessing directly



              And then you can access them directly using man:



              man $HOME/.local/share/man/manX/manpage.1.gz


              $MANPATH



              You can check what the $MANPATH is with the command manpath, or echo out the environment variable $MANPATH.



              Examples



              $ manpath
              manpath: warning: $MANPATH set, ignoring /etc/man_db.conf
              /home/saml/apps/perl5/perlbrew/perls/perl-5.14.0/man:/home/saml/.rvm/rubies/ruby-1.9.2-p180/share/man:/home/saml/.rvm/man:/usr/local/share/man:/usr/share/man:/usr/brlcad/share/man:/usr/man:/usr/brlcad/share/man:/usr/brlcad/share/man

              $ echo $MANPATH
              /home/saml/apps/perl5/perlbrew/perls/perl-5.14.0/man:/home/saml/.rvm/rubies/ruby-1.9.2-p180/share/man:/home/saml/.rvm/man:/usr/local/share/man:/usr/share/man:/usr/brlcad/share/man:/usr/man:/usr/brlcad/share/man:/usr/brlcad/share/man


              You can add things to the MANPATH temporarily:



              MANPATH=$HOME/.local/share/man:$MANPATH


              If you want to make this permanent then add a file in your /etc/profile.d/ directory called myman.bash with the above MANPATH= line in it. This will get picked up system wide for everyone. If you want it to be just for you, then add it to your $HOME/.bash_profile or $HOME/.bashrc.






              share|improve this answer












              You can put the man pages in this directory:



              $HOME/.local/share/man


              Accessing directly



              And then you can access them directly using man:



              man $HOME/.local/share/man/manX/manpage.1.gz


              $MANPATH



              You can check what the $MANPATH is with the command manpath, or echo out the environment variable $MANPATH.



              Examples



              $ manpath
              manpath: warning: $MANPATH set, ignoring /etc/man_db.conf
              /home/saml/apps/perl5/perlbrew/perls/perl-5.14.0/man:/home/saml/.rvm/rubies/ruby-1.9.2-p180/share/man:/home/saml/.rvm/man:/usr/local/share/man:/usr/share/man:/usr/brlcad/share/man:/usr/man:/usr/brlcad/share/man:/usr/brlcad/share/man

              $ echo $MANPATH
              /home/saml/apps/perl5/perlbrew/perls/perl-5.14.0/man:/home/saml/.rvm/rubies/ruby-1.9.2-p180/share/man:/home/saml/.rvm/man:/usr/local/share/man:/usr/share/man:/usr/brlcad/share/man:/usr/man:/usr/brlcad/share/man:/usr/brlcad/share/man


              You can add things to the MANPATH temporarily:



              MANPATH=$HOME/.local/share/man:$MANPATH


              If you want to make this permanent then add a file in your /etc/profile.d/ directory called myman.bash with the above MANPATH= line in it. This will get picked up system wide for everyone. If you want it to be just for you, then add it to your $HOME/.bash_profile or $HOME/.bashrc.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Sep 15 '13 at 14:17









              slm♦

              240k66499668




              240k66499668







              • 2




                To suppress manpath warnings about MANPATH being set, you can pass the -q option.
                – Joseph R.
                Sep 15 '13 at 14:46










              • Yes, I know that I can tell to man where to look. I'm looking for a generic, portable way for an generic installation (ie: where is man looking on a standard configuration)
                – Romuald Brunet
                Sep 17 '13 at 13:02










              • Do an echo $MANPATH and see what that shows. Those are good places to start looking, or use the manpath command as I showed in my answer.
                – slm♦
                Sep 17 '13 at 13:03













              • 2




                To suppress manpath warnings about MANPATH being set, you can pass the -q option.
                – Joseph R.
                Sep 15 '13 at 14:46










              • Yes, I know that I can tell to man where to look. I'm looking for a generic, portable way for an generic installation (ie: where is man looking on a standard configuration)
                – Romuald Brunet
                Sep 17 '13 at 13:02










              • Do an echo $MANPATH and see what that shows. Those are good places to start looking, or use the manpath command as I showed in my answer.
                – slm♦
                Sep 17 '13 at 13:03








              2




              2




              To suppress manpath warnings about MANPATH being set, you can pass the -q option.
              – Joseph R.
              Sep 15 '13 at 14:46




              To suppress manpath warnings about MANPATH being set, you can pass the -q option.
              – Joseph R.
              Sep 15 '13 at 14:46












              Yes, I know that I can tell to man where to look. I'm looking for a generic, portable way for an generic installation (ie: where is man looking on a standard configuration)
              – Romuald Brunet
              Sep 17 '13 at 13:02




              Yes, I know that I can tell to man where to look. I'm looking for a generic, portable way for an generic installation (ie: where is man looking on a standard configuration)
              – Romuald Brunet
              Sep 17 '13 at 13:02












              Do an echo $MANPATH and see what that shows. Those are good places to start looking, or use the manpath command as I showed in my answer.
              – slm♦
              Sep 17 '13 at 13:03





              Do an echo $MANPATH and see what that shows. Those are good places to start looking, or use the manpath command as I showed in my answer.
              – slm♦
              Sep 17 '13 at 13:03













              up vote
              0
              down vote













              Answer with desciption



              I am running Cygwin on Windows 7. When I try



              echo $MANPATH


              I get nothing. Here is my portable way of finding where to put new man pages.



              $ 
              grep -v 'Permission denied' >&3; 3>&2 2>&1


              (A note on that crazy command is at the bottom of this answer.)



              You could simply replace / with ~. Another possibility is under the Another note section below.



              On my machine, the find command returned:



               /etc/openwsman
              /lib/filemanager-actions
              /lib/gnome-commander
              /lib/help2man
              /lib/window-manager-settings
              /share/man
              /usr/man


              To me, that meant there were two possibilities: /share/man and /usr/man.



              I chose to use /usr/man, which you wouldn't, but I needed to do some more exploring.



              $ ls -l /usr/man
              total 0
              drwxr-xr-x+ 1 me Users 0 April 31 17:13 man1


              So, where I had the new man files in a doc/ sub-directory of my working directory, I used



              $ cp -R doc/* /usr/man/man1


              Now, I could get to my "manual" by typing



              $ man my_new_executable


              If you don't see a likely candidate, you can remove this part or change it, e.g. to -maxdepth 3, or 4, or 5, or however deep it takes to find what you need. When I did so with 3, I found two other candidates, /var/cache/man and usr/share/man , but I had already found a working solution, so I didn't mess with them.




              Another note



              I believe that /share/man/man1 or /var/cache/man would be available to non-root users, as you had requested. Please, correct me if I am wrong.




              The promised note at the bottom



              Note that I used the -maxdepth 2 option with find, because I figured that the man directory would be within two directories of the file system root, and I did not want to get too many extraneous directories that somehow had the substring man, as did /lib/gnome-comander.



              The extra stuff around the find is there to suppress any Permission denied errors in case you don't have access to su or sudo. Here is a great description of what's happening. (Look for the line that starts with "gniourf_gniourf".)






              share|improve this answer


























                up vote
                0
                down vote













                Answer with desciption



                I am running Cygwin on Windows 7. When I try



                echo $MANPATH


                I get nothing. Here is my portable way of finding where to put new man pages.



                $ 
                grep -v 'Permission denied' >&3; 3>&2 2>&1


                (A note on that crazy command is at the bottom of this answer.)



                You could simply replace / with ~. Another possibility is under the Another note section below.



                On my machine, the find command returned:



                 /etc/openwsman
                /lib/filemanager-actions
                /lib/gnome-commander
                /lib/help2man
                /lib/window-manager-settings
                /share/man
                /usr/man


                To me, that meant there were two possibilities: /share/man and /usr/man.



                I chose to use /usr/man, which you wouldn't, but I needed to do some more exploring.



                $ ls -l /usr/man
                total 0
                drwxr-xr-x+ 1 me Users 0 April 31 17:13 man1


                So, where I had the new man files in a doc/ sub-directory of my working directory, I used



                $ cp -R doc/* /usr/man/man1


                Now, I could get to my "manual" by typing



                $ man my_new_executable


                If you don't see a likely candidate, you can remove this part or change it, e.g. to -maxdepth 3, or 4, or 5, or however deep it takes to find what you need. When I did so with 3, I found two other candidates, /var/cache/man and usr/share/man , but I had already found a working solution, so I didn't mess with them.




                Another note



                I believe that /share/man/man1 or /var/cache/man would be available to non-root users, as you had requested. Please, correct me if I am wrong.




                The promised note at the bottom



                Note that I used the -maxdepth 2 option with find, because I figured that the man directory would be within two directories of the file system root, and I did not want to get too many extraneous directories that somehow had the substring man, as did /lib/gnome-comander.



                The extra stuff around the find is there to suppress any Permission denied errors in case you don't have access to su or sudo. Here is a great description of what's happening. (Look for the line that starts with "gniourf_gniourf".)






                share|improve this answer
























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Answer with desciption



                  I am running Cygwin on Windows 7. When I try



                  echo $MANPATH


                  I get nothing. Here is my portable way of finding where to put new man pages.



                  $ 
                  grep -v 'Permission denied' >&3; 3>&2 2>&1


                  (A note on that crazy command is at the bottom of this answer.)



                  You could simply replace / with ~. Another possibility is under the Another note section below.



                  On my machine, the find command returned:



                   /etc/openwsman
                  /lib/filemanager-actions
                  /lib/gnome-commander
                  /lib/help2man
                  /lib/window-manager-settings
                  /share/man
                  /usr/man


                  To me, that meant there were two possibilities: /share/man and /usr/man.



                  I chose to use /usr/man, which you wouldn't, but I needed to do some more exploring.



                  $ ls -l /usr/man
                  total 0
                  drwxr-xr-x+ 1 me Users 0 April 31 17:13 man1


                  So, where I had the new man files in a doc/ sub-directory of my working directory, I used



                  $ cp -R doc/* /usr/man/man1


                  Now, I could get to my "manual" by typing



                  $ man my_new_executable


                  If you don't see a likely candidate, you can remove this part or change it, e.g. to -maxdepth 3, or 4, or 5, or however deep it takes to find what you need. When I did so with 3, I found two other candidates, /var/cache/man and usr/share/man , but I had already found a working solution, so I didn't mess with them.




                  Another note



                  I believe that /share/man/man1 or /var/cache/man would be available to non-root users, as you had requested. Please, correct me if I am wrong.




                  The promised note at the bottom



                  Note that I used the -maxdepth 2 option with find, because I figured that the man directory would be within two directories of the file system root, and I did not want to get too many extraneous directories that somehow had the substring man, as did /lib/gnome-comander.



                  The extra stuff around the find is there to suppress any Permission denied errors in case you don't have access to su or sudo. Here is a great description of what's happening. (Look for the line that starts with "gniourf_gniourf".)






                  share|improve this answer














                  Answer with desciption



                  I am running Cygwin on Windows 7. When I try



                  echo $MANPATH


                  I get nothing. Here is my portable way of finding where to put new man pages.



                  $ 
                  grep -v 'Permission denied' >&3; 3>&2 2>&1


                  (A note on that crazy command is at the bottom of this answer.)



                  You could simply replace / with ~. Another possibility is under the Another note section below.



                  On my machine, the find command returned:



                   /etc/openwsman
                  /lib/filemanager-actions
                  /lib/gnome-commander
                  /lib/help2man
                  /lib/window-manager-settings
                  /share/man
                  /usr/man


                  To me, that meant there were two possibilities: /share/man and /usr/man.



                  I chose to use /usr/man, which you wouldn't, but I needed to do some more exploring.



                  $ ls -l /usr/man
                  total 0
                  drwxr-xr-x+ 1 me Users 0 April 31 17:13 man1


                  So, where I had the new man files in a doc/ sub-directory of my working directory, I used



                  $ cp -R doc/* /usr/man/man1


                  Now, I could get to my "manual" by typing



                  $ man my_new_executable


                  If you don't see a likely candidate, you can remove this part or change it, e.g. to -maxdepth 3, or 4, or 5, or however deep it takes to find what you need. When I did so with 3, I found two other candidates, /var/cache/man and usr/share/man , but I had already found a working solution, so I didn't mess with them.




                  Another note



                  I believe that /share/man/man1 or /var/cache/man would be available to non-root users, as you had requested. Please, correct me if I am wrong.




                  The promised note at the bottom



                  Note that I used the -maxdepth 2 option with find, because I figured that the man directory would be within two directories of the file system root, and I did not want to get too many extraneous directories that somehow had the substring man, as did /lib/gnome-comander.



                  The extra stuff around the find is there to suppress any Permission denied errors in case you don't have access to su or sudo. Here is a great description of what's happening. (Look for the line that starts with "gniourf_gniourf".)







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jun 6 at 23:40

























                  answered Jun 6 at 23:09









                  bballdave025

                  1035




                  1035




















                      up vote
                      0
                      down vote













                      I have installed a few apps that I compiled, with the respective configures set for installing in $HOME/usr/local.



                      I find now that I have directories



                      ~/usr/local/share/man/man1
                      ~/usr/local/share/man/man3
                      ~/usr/local/share/man/man5


                      with manpages gnuplot.1, gnuplot-ja.1, python3.1, python3.5.1, libpng.3, libpngpf.3, zlib.3, png.5, so I guess it is a pretty standard location for apps installed locally.



                      It is then a candidate location for the cases where one has to choose manually the local man directory.



                      Of course, one can add arbitrary paths (and should do it even in the usual just case mentioned) for man pages with



                      export MANPATH="$HOME/usr/local/share/man$MANPATH:+:$MANPATH"


                      (see this).





                      share
























                        up vote
                        0
                        down vote













                        I have installed a few apps that I compiled, with the respective configures set for installing in $HOME/usr/local.



                        I find now that I have directories



                        ~/usr/local/share/man/man1
                        ~/usr/local/share/man/man3
                        ~/usr/local/share/man/man5


                        with manpages gnuplot.1, gnuplot-ja.1, python3.1, python3.5.1, libpng.3, libpngpf.3, zlib.3, png.5, so I guess it is a pretty standard location for apps installed locally.



                        It is then a candidate location for the cases where one has to choose manually the local man directory.



                        Of course, one can add arbitrary paths (and should do it even in the usual just case mentioned) for man pages with



                        export MANPATH="$HOME/usr/local/share/man$MANPATH:+:$MANPATH"


                        (see this).





                        share






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          I have installed a few apps that I compiled, with the respective configures set for installing in $HOME/usr/local.



                          I find now that I have directories



                          ~/usr/local/share/man/man1
                          ~/usr/local/share/man/man3
                          ~/usr/local/share/man/man5


                          with manpages gnuplot.1, gnuplot-ja.1, python3.1, python3.5.1, libpng.3, libpngpf.3, zlib.3, png.5, so I guess it is a pretty standard location for apps installed locally.



                          It is then a candidate location for the cases where one has to choose manually the local man directory.



                          Of course, one can add arbitrary paths (and should do it even in the usual just case mentioned) for man pages with



                          export MANPATH="$HOME/usr/local/share/man$MANPATH:+:$MANPATH"


                          (see this).





                          share












                          I have installed a few apps that I compiled, with the respective configures set for installing in $HOME/usr/local.



                          I find now that I have directories



                          ~/usr/local/share/man/man1
                          ~/usr/local/share/man/man3
                          ~/usr/local/share/man/man5


                          with manpages gnuplot.1, gnuplot-ja.1, python3.1, python3.5.1, libpng.3, libpngpf.3, zlib.3, png.5, so I guess it is a pretty standard location for apps installed locally.



                          It is then a candidate location for the cases where one has to choose manually the local man directory.



                          Of course, one can add arbitrary paths (and should do it even in the usual just case mentioned) for man pages with



                          export MANPATH="$HOME/usr/local/share/man$MANPATH:+:$MANPATH"


                          (see this).






                          share











                          share


                          share










                          answered 6 mins ago









                          sancho.s

                          301210




                          301210



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f90759%2fwhere-should-i-install-manual-pages-in-user-directory%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Bahrain

                              Postfix configuration issue with fips on centos 7; mailgun relay