CLI: Get information Ubuntu releases












6















How can I get information about Ubuntu releases from the command line?

Items of interest




  • Names vs. version numbers

  • support state










share|improve this question



























    6















    How can I get information about Ubuntu releases from the command line?

    Items of interest




    • Names vs. version numbers

    • support state










    share|improve this question

























      6












      6








      6


      2






      How can I get information about Ubuntu releases from the command line?

      Items of interest




      • Names vs. version numbers

      • support state










      share|improve this question














      How can I get information about Ubuntu releases from the command line?

      Items of interest




      • Names vs. version numbers

      • support state







      command-line support






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      guntbertguntbert

      9,431133170




      9,431133170






















          2 Answers
          2






          active

          oldest

          votes


















          7














          ubuntu-distro-info from the distro-info Install distro-info package provides information about all Ubuntu releases.



          You get an overview of all releases with



          ubuntu-distro-info --all --fullname


          For the "current" version



          ubuntu-distro-info --stable --fullname


          For the current LTS release



          ubuntu-distro-info --lts --fullname


          For currently supported releases



          ubuntu-distro-info --supported --fullname


          (This strangely includes the current development version although it is not supported yet)



          To get the number of days till EndOfLive you add --days=eol (shorter -yeol)



          ubuntu-distro-info --supported --fullname --days=eol


          To get the number of days till the current development version will be released you can use just -y or --days



          ubuntu-distro-info --latest --fullname --days





          share|improve this answer


























          • The other useful command from distro-info package is debian-distro-info. We should respect Ubuntu parents :)

            – N0rbert
            2 days ago



















          3














          Also a general way (works also on non-Ubuntu distros as well):



          lsb_release -a


          It uses /etc/os-release to read the config data. On .deb-based distros, also /etc/dpkg should correct as so. After a manual shift to/from Ubuntu, this should be manually corrected.






          share|improve this answer

























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2faskubuntu.com%2fquestions%2f1126687%2fcli-get-information-ubuntu-releases%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7














            ubuntu-distro-info from the distro-info Install distro-info package provides information about all Ubuntu releases.



            You get an overview of all releases with



            ubuntu-distro-info --all --fullname


            For the "current" version



            ubuntu-distro-info --stable --fullname


            For the current LTS release



            ubuntu-distro-info --lts --fullname


            For currently supported releases



            ubuntu-distro-info --supported --fullname


            (This strangely includes the current development version although it is not supported yet)



            To get the number of days till EndOfLive you add --days=eol (shorter -yeol)



            ubuntu-distro-info --supported --fullname --days=eol


            To get the number of days till the current development version will be released you can use just -y or --days



            ubuntu-distro-info --latest --fullname --days





            share|improve this answer


























            • The other useful command from distro-info package is debian-distro-info. We should respect Ubuntu parents :)

              – N0rbert
              2 days ago
















            7














            ubuntu-distro-info from the distro-info Install distro-info package provides information about all Ubuntu releases.



            You get an overview of all releases with



            ubuntu-distro-info --all --fullname


            For the "current" version



            ubuntu-distro-info --stable --fullname


            For the current LTS release



            ubuntu-distro-info --lts --fullname


            For currently supported releases



            ubuntu-distro-info --supported --fullname


            (This strangely includes the current development version although it is not supported yet)



            To get the number of days till EndOfLive you add --days=eol (shorter -yeol)



            ubuntu-distro-info --supported --fullname --days=eol


            To get the number of days till the current development version will be released you can use just -y or --days



            ubuntu-distro-info --latest --fullname --days





            share|improve this answer


























            • The other useful command from distro-info package is debian-distro-info. We should respect Ubuntu parents :)

              – N0rbert
              2 days ago














            7












            7








            7







            ubuntu-distro-info from the distro-info Install distro-info package provides information about all Ubuntu releases.



            You get an overview of all releases with



            ubuntu-distro-info --all --fullname


            For the "current" version



            ubuntu-distro-info --stable --fullname


            For the current LTS release



            ubuntu-distro-info --lts --fullname


            For currently supported releases



            ubuntu-distro-info --supported --fullname


            (This strangely includes the current development version although it is not supported yet)



            To get the number of days till EndOfLive you add --days=eol (shorter -yeol)



            ubuntu-distro-info --supported --fullname --days=eol


            To get the number of days till the current development version will be released you can use just -y or --days



            ubuntu-distro-info --latest --fullname --days





            share|improve this answer















            ubuntu-distro-info from the distro-info Install distro-info package provides information about all Ubuntu releases.



            You get an overview of all releases with



            ubuntu-distro-info --all --fullname


            For the "current" version



            ubuntu-distro-info --stable --fullname


            For the current LTS release



            ubuntu-distro-info --lts --fullname


            For currently supported releases



            ubuntu-distro-info --supported --fullname


            (This strangely includes the current development version although it is not supported yet)



            To get the number of days till EndOfLive you add --days=eol (shorter -yeol)



            ubuntu-distro-info --supported --fullname --days=eol


            To get the number of days till the current development version will be released you can use just -y or --days



            ubuntu-distro-info --latest --fullname --days






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 2 days ago

























            answered 2 days ago









            guntbertguntbert

            9,431133170




            9,431133170













            • The other useful command from distro-info package is debian-distro-info. We should respect Ubuntu parents :)

              – N0rbert
              2 days ago



















            • The other useful command from distro-info package is debian-distro-info. We should respect Ubuntu parents :)

              – N0rbert
              2 days ago

















            The other useful command from distro-info package is debian-distro-info. We should respect Ubuntu parents :)

            – N0rbert
            2 days ago





            The other useful command from distro-info package is debian-distro-info. We should respect Ubuntu parents :)

            – N0rbert
            2 days ago













            3














            Also a general way (works also on non-Ubuntu distros as well):



            lsb_release -a


            It uses /etc/os-release to read the config data. On .deb-based distros, also /etc/dpkg should correct as so. After a manual shift to/from Ubuntu, this should be manually corrected.






            share|improve this answer






























              3














              Also a general way (works also on non-Ubuntu distros as well):



              lsb_release -a


              It uses /etc/os-release to read the config data. On .deb-based distros, also /etc/dpkg should correct as so. After a manual shift to/from Ubuntu, this should be manually corrected.






              share|improve this answer




























                3












                3








                3







                Also a general way (works also on non-Ubuntu distros as well):



                lsb_release -a


                It uses /etc/os-release to read the config data. On .deb-based distros, also /etc/dpkg should correct as so. After a manual shift to/from Ubuntu, this should be manually corrected.






                share|improve this answer















                Also a general way (works also on non-Ubuntu distros as well):



                lsb_release -a


                It uses /etc/os-release to read the config data. On .deb-based distros, also /etc/dpkg should correct as so. After a manual shift to/from Ubuntu, this should be manually corrected.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited yesterday

























                answered 2 days ago









                peterhpeterh

                2119




                2119






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126687%2fcli-get-information-ubuntu-releases%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

                    Plaza Victoria

                    In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                    How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...