Install the latest POSIX man pages?

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











up vote
2
down vote

favorite












CentOS 6 (and probably most Linux distros) includes a man page section 1p for POSIX specifications.



man 1p sh, man 1p sed, et. al. are all very useful to be able to refer to for portable shell scripting.



However, I've just noticed that these man pages on my system are from the 2003 Open Group Base Specifications! Since then there have been the 2008 edition, the 2013 edition and the 2016 edition.



How can I make the latest POSIX specifications available offline as man pages on my Linux system?




I already attempted the following:



[vagrant@localhost ~]$ set -x
++ printf '33]0;%s@%s:%s07' vagrant localhost '~'
[vagrant@localhost ~]$ sudo yum upgrade $(rpm -qf $(man -w 1p sh))
+++ man -w 1p sh
++ rpm -qf /usr/share/man/man1p/sh.1p.gz
+ sudo yum upgrade man-pages-3.22-20.el6.noarch
Loaded plugins: fastestmirror, security
Setting up Upgrade Process
Loading mirror speeds from cached hostfile
* base: mirrors.evowise.com
* extras: centos.sonn.com
* updates: mirror.scalabledns.com
No Packages marked for Update
++ printf '33]0;%s@%s:%s07' vagrant localhost '~'
[vagrant@localhost ~]$



(On a related note: is there somewhere I can look up the differences of what exactly has changed between the 2003 edition and the 2016 edition?)










share|improve this question

















  • 1




    For OpenBSD users: The POSIX "IEEE Std 1003.1-2008/Cor 1-2013" manual pages are available in the books/man-pages-posix port.
    – Kusalananda
    Jan 26 '17 at 12:31














up vote
2
down vote

favorite












CentOS 6 (and probably most Linux distros) includes a man page section 1p for POSIX specifications.



man 1p sh, man 1p sed, et. al. are all very useful to be able to refer to for portable shell scripting.



However, I've just noticed that these man pages on my system are from the 2003 Open Group Base Specifications! Since then there have been the 2008 edition, the 2013 edition and the 2016 edition.



How can I make the latest POSIX specifications available offline as man pages on my Linux system?




I already attempted the following:



[vagrant@localhost ~]$ set -x
++ printf '33]0;%s@%s:%s07' vagrant localhost '~'
[vagrant@localhost ~]$ sudo yum upgrade $(rpm -qf $(man -w 1p sh))
+++ man -w 1p sh
++ rpm -qf /usr/share/man/man1p/sh.1p.gz
+ sudo yum upgrade man-pages-3.22-20.el6.noarch
Loaded plugins: fastestmirror, security
Setting up Upgrade Process
Loading mirror speeds from cached hostfile
* base: mirrors.evowise.com
* extras: centos.sonn.com
* updates: mirror.scalabledns.com
No Packages marked for Update
++ printf '33]0;%s@%s:%s07' vagrant localhost '~'
[vagrant@localhost ~]$



(On a related note: is there somewhere I can look up the differences of what exactly has changed between the 2003 edition and the 2016 edition?)










share|improve this question

















  • 1




    For OpenBSD users: The POSIX "IEEE Std 1003.1-2008/Cor 1-2013" manual pages are available in the books/man-pages-posix port.
    – Kusalananda
    Jan 26 '17 at 12:31












up vote
2
down vote

favorite









up vote
2
down vote

favorite











CentOS 6 (and probably most Linux distros) includes a man page section 1p for POSIX specifications.



man 1p sh, man 1p sed, et. al. are all very useful to be able to refer to for portable shell scripting.



However, I've just noticed that these man pages on my system are from the 2003 Open Group Base Specifications! Since then there have been the 2008 edition, the 2013 edition and the 2016 edition.



How can I make the latest POSIX specifications available offline as man pages on my Linux system?




I already attempted the following:



[vagrant@localhost ~]$ set -x
++ printf '33]0;%s@%s:%s07' vagrant localhost '~'
[vagrant@localhost ~]$ sudo yum upgrade $(rpm -qf $(man -w 1p sh))
+++ man -w 1p sh
++ rpm -qf /usr/share/man/man1p/sh.1p.gz
+ sudo yum upgrade man-pages-3.22-20.el6.noarch
Loaded plugins: fastestmirror, security
Setting up Upgrade Process
Loading mirror speeds from cached hostfile
* base: mirrors.evowise.com
* extras: centos.sonn.com
* updates: mirror.scalabledns.com
No Packages marked for Update
++ printf '33]0;%s@%s:%s07' vagrant localhost '~'
[vagrant@localhost ~]$



(On a related note: is there somewhere I can look up the differences of what exactly has changed between the 2003 edition and the 2016 edition?)










share|improve this question













CentOS 6 (and probably most Linux distros) includes a man page section 1p for POSIX specifications.



man 1p sh, man 1p sed, et. al. are all very useful to be able to refer to for portable shell scripting.



However, I've just noticed that these man pages on my system are from the 2003 Open Group Base Specifications! Since then there have been the 2008 edition, the 2013 edition and the 2016 edition.



How can I make the latest POSIX specifications available offline as man pages on my Linux system?




I already attempted the following:



[vagrant@localhost ~]$ set -x
++ printf '33]0;%s@%s:%s07' vagrant localhost '~'
[vagrant@localhost ~]$ sudo yum upgrade $(rpm -qf $(man -w 1p sh))
+++ man -w 1p sh
++ rpm -qf /usr/share/man/man1p/sh.1p.gz
+ sudo yum upgrade man-pages-3.22-20.el6.noarch
Loaded plugins: fastestmirror, security
Setting up Upgrade Process
Loading mirror speeds from cached hostfile
* base: mirrors.evowise.com
* extras: centos.sonn.com
* updates: mirror.scalabledns.com
No Packages marked for Update
++ printf '33]0;%s@%s:%s07' vagrant localhost '~'
[vagrant@localhost ~]$



(On a related note: is there somewhere I can look up the differences of what exactly has changed between the 2003 edition and the 2016 edition?)







man posix






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 26 '17 at 12:14









Wildcard

22.5k959164




22.5k959164







  • 1




    For OpenBSD users: The POSIX "IEEE Std 1003.1-2008/Cor 1-2013" manual pages are available in the books/man-pages-posix port.
    – Kusalananda
    Jan 26 '17 at 12:31












  • 1




    For OpenBSD users: The POSIX "IEEE Std 1003.1-2008/Cor 1-2013" manual pages are available in the books/man-pages-posix port.
    – Kusalananda
    Jan 26 '17 at 12:31







1




1




For OpenBSD users: The POSIX "IEEE Std 1003.1-2008/Cor 1-2013" manual pages are available in the books/man-pages-posix port.
– Kusalananda
Jan 26 '17 at 12:31




For OpenBSD users: The POSIX "IEEE Std 1003.1-2008/Cor 1-2013" manual pages are available in the books/man-pages-posix port.
– Kusalananda
Jan 26 '17 at 12:31










3 Answers
3






active

oldest

votes

















up vote
3
down vote













The change history for the POSIX.1-2008 standard is included in the Rationale volume.



The Rationale for the Base Definitions contains links to the change history for the System Interfaces and the Shell and Utilities.



Each entry (utility or interface) also has a CHANGE HISTORY section towards the bottom of the individual entries.



The full standard is available here: http://pubs.opengroup.org/onlinepubs/9699919799/nframe.html






share|improve this answer




















  • See also pubs.opengroup.org/onlinepubs/9699919799.2008edition pubs.opengroup.org/onlinepubs/9699919799.2013edition and pubs.opengroup.org/onlinepubs/9699919799.2016edition for the various editions (technical corrigenda) of POSIX.1-2008 (best for linking in unix.se answers as links (anchors especially) may change when a new edition comes out). And add /download to those URLs to download the full HTML text as a tar file.
    – Stéphane Chazelas
    Jan 26 '17 at 23:21


















up vote
2
down vote













Man pages describe how the system actually functions, not how a standards body N years after the OS came out changed the standard. If Red Hat chose to ship POSIX 2003 man pages with their OS, I take that as meaning that's the closest POSIX standard to what they shipped.



I would leave the OS-provided POSIX man pages alone, but download the current versions, install them somewhere else like /usr/local/linux-man-pages/share/man, then put that directory into your MANPATH.



If you rename the p pages to have some other tag — say, pc for "POSIX current" — you can query them separately from the OS-provided ones. For example, you could use a tool like mmv:



$ mmv 'man1p/*.1p.gz' 'man1p/#1.1pc.gz'
$ mv man1p man1pc
... do the same for man 2p, etc ...
$ man ls # shows GNU ls page
$ man 1p ls # shows OS-provided POSIX ls page
$ man 1pc ls # shows current POSIX ls page


Either remove the non-POSIX man pages that conflict with the OS-provided ones, or tag them similarly if you also want to be able to refer to current Linux-specific man pages. You could use lc for "Linux current", for example.






share|improve this answer





























    up vote
    0
    down vote













    zipped versions of the HTML for grepping



    • http://pubs.opengroup.org/onlinepubs/9699919799/download/

    • http://pubs.opengroup.org/onlinepubs/9699919799/download/susv4tc2.zip

    Those are useful when you start wanting to grep for things, without paying for the PDF.






    share|improve this answer




















      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: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      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%2f340285%2finstall-the-latest-posix-man-pages%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote













      The change history for the POSIX.1-2008 standard is included in the Rationale volume.



      The Rationale for the Base Definitions contains links to the change history for the System Interfaces and the Shell and Utilities.



      Each entry (utility or interface) also has a CHANGE HISTORY section towards the bottom of the individual entries.



      The full standard is available here: http://pubs.opengroup.org/onlinepubs/9699919799/nframe.html






      share|improve this answer




















      • See also pubs.opengroup.org/onlinepubs/9699919799.2008edition pubs.opengroup.org/onlinepubs/9699919799.2013edition and pubs.opengroup.org/onlinepubs/9699919799.2016edition for the various editions (technical corrigenda) of POSIX.1-2008 (best for linking in unix.se answers as links (anchors especially) may change when a new edition comes out). And add /download to those URLs to download the full HTML text as a tar file.
        – Stéphane Chazelas
        Jan 26 '17 at 23:21















      up vote
      3
      down vote













      The change history for the POSIX.1-2008 standard is included in the Rationale volume.



      The Rationale for the Base Definitions contains links to the change history for the System Interfaces and the Shell and Utilities.



      Each entry (utility or interface) also has a CHANGE HISTORY section towards the bottom of the individual entries.



      The full standard is available here: http://pubs.opengroup.org/onlinepubs/9699919799/nframe.html






      share|improve this answer




















      • See also pubs.opengroup.org/onlinepubs/9699919799.2008edition pubs.opengroup.org/onlinepubs/9699919799.2013edition and pubs.opengroup.org/onlinepubs/9699919799.2016edition for the various editions (technical corrigenda) of POSIX.1-2008 (best for linking in unix.se answers as links (anchors especially) may change when a new edition comes out). And add /download to those URLs to download the full HTML text as a tar file.
        – Stéphane Chazelas
        Jan 26 '17 at 23:21













      up vote
      3
      down vote










      up vote
      3
      down vote









      The change history for the POSIX.1-2008 standard is included in the Rationale volume.



      The Rationale for the Base Definitions contains links to the change history for the System Interfaces and the Shell and Utilities.



      Each entry (utility or interface) also has a CHANGE HISTORY section towards the bottom of the individual entries.



      The full standard is available here: http://pubs.opengroup.org/onlinepubs/9699919799/nframe.html






      share|improve this answer












      The change history for the POSIX.1-2008 standard is included in the Rationale volume.



      The Rationale for the Base Definitions contains links to the change history for the System Interfaces and the Shell and Utilities.



      Each entry (utility or interface) also has a CHANGE HISTORY section towards the bottom of the individual entries.



      The full standard is available here: http://pubs.opengroup.org/onlinepubs/9699919799/nframe.html







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jan 26 '17 at 12:55









      Kusalananda

      117k16221359




      117k16221359











      • See also pubs.opengroup.org/onlinepubs/9699919799.2008edition pubs.opengroup.org/onlinepubs/9699919799.2013edition and pubs.opengroup.org/onlinepubs/9699919799.2016edition for the various editions (technical corrigenda) of POSIX.1-2008 (best for linking in unix.se answers as links (anchors especially) may change when a new edition comes out). And add /download to those URLs to download the full HTML text as a tar file.
        – Stéphane Chazelas
        Jan 26 '17 at 23:21

















      • See also pubs.opengroup.org/onlinepubs/9699919799.2008edition pubs.opengroup.org/onlinepubs/9699919799.2013edition and pubs.opengroup.org/onlinepubs/9699919799.2016edition for the various editions (technical corrigenda) of POSIX.1-2008 (best for linking in unix.se answers as links (anchors especially) may change when a new edition comes out). And add /download to those URLs to download the full HTML text as a tar file.
        – Stéphane Chazelas
        Jan 26 '17 at 23:21
















      See also pubs.opengroup.org/onlinepubs/9699919799.2008edition pubs.opengroup.org/onlinepubs/9699919799.2013edition and pubs.opengroup.org/onlinepubs/9699919799.2016edition for the various editions (technical corrigenda) of POSIX.1-2008 (best for linking in unix.se answers as links (anchors especially) may change when a new edition comes out). And add /download to those URLs to download the full HTML text as a tar file.
      – Stéphane Chazelas
      Jan 26 '17 at 23:21





      See also pubs.opengroup.org/onlinepubs/9699919799.2008edition pubs.opengroup.org/onlinepubs/9699919799.2013edition and pubs.opengroup.org/onlinepubs/9699919799.2016edition for the various editions (technical corrigenda) of POSIX.1-2008 (best for linking in unix.se answers as links (anchors especially) may change when a new edition comes out). And add /download to those URLs to download the full HTML text as a tar file.
      – Stéphane Chazelas
      Jan 26 '17 at 23:21













      up vote
      2
      down vote













      Man pages describe how the system actually functions, not how a standards body N years after the OS came out changed the standard. If Red Hat chose to ship POSIX 2003 man pages with their OS, I take that as meaning that's the closest POSIX standard to what they shipped.



      I would leave the OS-provided POSIX man pages alone, but download the current versions, install them somewhere else like /usr/local/linux-man-pages/share/man, then put that directory into your MANPATH.



      If you rename the p pages to have some other tag — say, pc for "POSIX current" — you can query them separately from the OS-provided ones. For example, you could use a tool like mmv:



      $ mmv 'man1p/*.1p.gz' 'man1p/#1.1pc.gz'
      $ mv man1p man1pc
      ... do the same for man 2p, etc ...
      $ man ls # shows GNU ls page
      $ man 1p ls # shows OS-provided POSIX ls page
      $ man 1pc ls # shows current POSIX ls page


      Either remove the non-POSIX man pages that conflict with the OS-provided ones, or tag them similarly if you also want to be able to refer to current Linux-specific man pages. You could use lc for "Linux current", for example.






      share|improve this answer


























        up vote
        2
        down vote













        Man pages describe how the system actually functions, not how a standards body N years after the OS came out changed the standard. If Red Hat chose to ship POSIX 2003 man pages with their OS, I take that as meaning that's the closest POSIX standard to what they shipped.



        I would leave the OS-provided POSIX man pages alone, but download the current versions, install them somewhere else like /usr/local/linux-man-pages/share/man, then put that directory into your MANPATH.



        If you rename the p pages to have some other tag — say, pc for "POSIX current" — you can query them separately from the OS-provided ones. For example, you could use a tool like mmv:



        $ mmv 'man1p/*.1p.gz' 'man1p/#1.1pc.gz'
        $ mv man1p man1pc
        ... do the same for man 2p, etc ...
        $ man ls # shows GNU ls page
        $ man 1p ls # shows OS-provided POSIX ls page
        $ man 1pc ls # shows current POSIX ls page


        Either remove the non-POSIX man pages that conflict with the OS-provided ones, or tag them similarly if you also want to be able to refer to current Linux-specific man pages. You could use lc for "Linux current", for example.






        share|improve this answer
























          up vote
          2
          down vote










          up vote
          2
          down vote









          Man pages describe how the system actually functions, not how a standards body N years after the OS came out changed the standard. If Red Hat chose to ship POSIX 2003 man pages with their OS, I take that as meaning that's the closest POSIX standard to what they shipped.



          I would leave the OS-provided POSIX man pages alone, but download the current versions, install them somewhere else like /usr/local/linux-man-pages/share/man, then put that directory into your MANPATH.



          If you rename the p pages to have some other tag — say, pc for "POSIX current" — you can query them separately from the OS-provided ones. For example, you could use a tool like mmv:



          $ mmv 'man1p/*.1p.gz' 'man1p/#1.1pc.gz'
          $ mv man1p man1pc
          ... do the same for man 2p, etc ...
          $ man ls # shows GNU ls page
          $ man 1p ls # shows OS-provided POSIX ls page
          $ man 1pc ls # shows current POSIX ls page


          Either remove the non-POSIX man pages that conflict with the OS-provided ones, or tag them similarly if you also want to be able to refer to current Linux-specific man pages. You could use lc for "Linux current", for example.






          share|improve this answer














          Man pages describe how the system actually functions, not how a standards body N years after the OS came out changed the standard. If Red Hat chose to ship POSIX 2003 man pages with their OS, I take that as meaning that's the closest POSIX standard to what they shipped.



          I would leave the OS-provided POSIX man pages alone, but download the current versions, install them somewhere else like /usr/local/linux-man-pages/share/man, then put that directory into your MANPATH.



          If you rename the p pages to have some other tag — say, pc for "POSIX current" — you can query them separately from the OS-provided ones. For example, you could use a tool like mmv:



          $ mmv 'man1p/*.1p.gz' 'man1p/#1.1pc.gz'
          $ mv man1p man1pc
          ... do the same for man 2p, etc ...
          $ man ls # shows GNU ls page
          $ man 1p ls # shows OS-provided POSIX ls page
          $ man 1pc ls # shows current POSIX ls page


          Either remove the non-POSIX man pages that conflict with the OS-provided ones, or tag them similarly if you also want to be able to refer to current Linux-specific man pages. You could use lc for "Linux current", for example.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 27 '17 at 4:47

























          answered Jan 26 '17 at 23:12









          Warren Young

          54.2k9142145




          54.2k9142145




















              up vote
              0
              down vote













              zipped versions of the HTML for grepping



              • http://pubs.opengroup.org/onlinepubs/9699919799/download/

              • http://pubs.opengroup.org/onlinepubs/9699919799/download/susv4tc2.zip

              Those are useful when you start wanting to grep for things, without paying for the PDF.






              share|improve this answer
























                up vote
                0
                down vote













                zipped versions of the HTML for grepping



                • http://pubs.opengroup.org/onlinepubs/9699919799/download/

                • http://pubs.opengroup.org/onlinepubs/9699919799/download/susv4tc2.zip

                Those are useful when you start wanting to grep for things, without paying for the PDF.






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  zipped versions of the HTML for grepping



                  • http://pubs.opengroup.org/onlinepubs/9699919799/download/

                  • http://pubs.opengroup.org/onlinepubs/9699919799/download/susv4tc2.zip

                  Those are useful when you start wanting to grep for things, without paying for the PDF.






                  share|improve this answer












                  zipped versions of the HTML for grepping



                  • http://pubs.opengroup.org/onlinepubs/9699919799/download/

                  • http://pubs.opengroup.org/onlinepubs/9699919799/download/susv4tc2.zip

                  Those are useful when you start wanting to grep for things, without paying for the PDF.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 21 at 13:00









                  Ciro Santilli 新疆改造中心 六四事件 法轮功

                  4,70824038




                  4,70824038



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f340285%2finstall-the-latest-posix-man-pages%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown






                      Popular posts from this blog

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

                      Displaying single band from multi-band raster using QGIS

                      How many registers does an x86_64 CPU actually have?