How can I get *ALL* the info for available packages in apt at once?How can I install any package in a particular directory with apt-get?Can I upgrade Mailman to the latest release via apt-get?Are all apt-get packages available on 64 bit ubuntu version available on the ARM version?View available items to install via apt-get?How can I get a list of all packages available for a specific version of Ubuntu (not necessarily the one I have installed)?How do I install old version of R (3.3.x) with apt-get?How to pipe installed packages to apt-cache?

Remove radicals from denominator

Fast cooking bone broth

Are soldered electrical connections code-compliant?

Simple Markdown viewer for Windows

Am I overreacting or seeing things where they don't exist?

Is Absorb Elements cast before or after a save? Is it cast before or after damage?

Relinquishing Green card at CA/Mexico border

Temporary queue to prevent duplication

Could a technologically advanced society exist as a feudal monarchy?

What’s the first use of the term “Downwell”

Possible bug in NMaximize function?

Did the computer mouse always output relative x/y and not absolute?

How to educate bachelor and master exchange students from Asia?

Does the PS4 still *beep* when coming out of Rest mode?

Can one get into trouble if one doesn't show up at the gate 30 minutes before departure (or whatever time window the boarding pass is indicating)?

What is the meaning of "wiped my face with a planet"?

Generate array of integers that sum to zero

How to Taper a coil?

Elementary calculus estimate or not?

Science fiction book about a generation ship sent to seed or colonize a planet

Where is the Windows license key on Windows 10?

Can socialism and capitalism coexist in the same country?

How test case design is different for GUI & API?

What is the name of this part of drawers?



How can I get *ALL* the info for available packages in apt at once?


How can I install any package in a particular directory with apt-get?Can I upgrade Mailman to the latest release via apt-get?Are all apt-get packages available on 64 bit ubuntu version available on the ARM version?View available items to install via apt-get?How can I get a list of all packages available for a specific version of Ubuntu (not necessarily the one I have installed)?How do I install old version of R (3.3.x) with apt-get?How to pipe installed packages to apt-cache?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0


















I would like to get the details about all the available packages in apt without installing them. I know that apt-cache search . would give me the list and description of all the available packages. However, I'm interested in the same list but with the most recent version. Is it possible?



I also know that I can loop over the package names and run apt-cache show pkgName, but I do not want to make multiple queries to apt-cache. I want to query it only once or use another tool or another available resource that could give me this info.



Edit: I would like the output to be something like this on each line:



package1, version
package2, version
...


And version, is the most recent version available in apt repository.










share|improve this question



























  • Do I misunderstand you or apt-cache show . helps?

    – guillermo chamorro
    Sep 26 at 19:35











  • Thanks for your comment. I like the output to be something like this on each line: packageName, most recent version

    – Sida
    Sep 26 at 19:42






  • 5





    This seems like an XY Question. What is the purpose of this output format? Why would anybody want a list of thousands of package names and their current versions?

    – user535733
    Sep 26 at 19:45






  • 1





    Totally agree with @user535733 . Please also note that the output of apt-cache policy . might be a bit easier to parse than the one of apt-cache show, in case you want to script its parsing.

    – dadexix86
    Sep 26 at 19:48

















0


















I would like to get the details about all the available packages in apt without installing them. I know that apt-cache search . would give me the list and description of all the available packages. However, I'm interested in the same list but with the most recent version. Is it possible?



I also know that I can loop over the package names and run apt-cache show pkgName, but I do not want to make multiple queries to apt-cache. I want to query it only once or use another tool or another available resource that could give me this info.



Edit: I would like the output to be something like this on each line:



package1, version
package2, version
...


And version, is the most recent version available in apt repository.










share|improve this question



























  • Do I misunderstand you or apt-cache show . helps?

    – guillermo chamorro
    Sep 26 at 19:35











  • Thanks for your comment. I like the output to be something like this on each line: packageName, most recent version

    – Sida
    Sep 26 at 19:42






  • 5





    This seems like an XY Question. What is the purpose of this output format? Why would anybody want a list of thousands of package names and their current versions?

    – user535733
    Sep 26 at 19:45






  • 1





    Totally agree with @user535733 . Please also note that the output of apt-cache policy . might be a bit easier to parse than the one of apt-cache show, in case you want to script its parsing.

    – dadexix86
    Sep 26 at 19:48













0













0









0








I would like to get the details about all the available packages in apt without installing them. I know that apt-cache search . would give me the list and description of all the available packages. However, I'm interested in the same list but with the most recent version. Is it possible?



I also know that I can loop over the package names and run apt-cache show pkgName, but I do not want to make multiple queries to apt-cache. I want to query it only once or use another tool or another available resource that could give me this info.



Edit: I would like the output to be something like this on each line:



package1, version
package2, version
...


And version, is the most recent version available in apt repository.










share|improve this question
















I would like to get the details about all the available packages in apt without installing them. I know that apt-cache search . would give me the list and description of all the available packages. However, I'm interested in the same list but with the most recent version. Is it possible?



I also know that I can loop over the package names and run apt-cache show pkgName, but I do not want to make multiple queries to apt-cache. I want to query it only once or use another tool or another available resource that could give me this info.



Edit: I would like the output to be something like this on each line:



package1, version
package2, version
...


And version, is the most recent version available in apt repository.







apt apt-cache






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 26 at 19:43







Sida

















asked Sep 26 at 19:15









SidaSida

373 bronze badges




373 bronze badges















  • Do I misunderstand you or apt-cache show . helps?

    – guillermo chamorro
    Sep 26 at 19:35











  • Thanks for your comment. I like the output to be something like this on each line: packageName, most recent version

    – Sida
    Sep 26 at 19:42






  • 5





    This seems like an XY Question. What is the purpose of this output format? Why would anybody want a list of thousands of package names and their current versions?

    – user535733
    Sep 26 at 19:45






  • 1





    Totally agree with @user535733 . Please also note that the output of apt-cache policy . might be a bit easier to parse than the one of apt-cache show, in case you want to script its parsing.

    – dadexix86
    Sep 26 at 19:48

















  • Do I misunderstand you or apt-cache show . helps?

    – guillermo chamorro
    Sep 26 at 19:35











  • Thanks for your comment. I like the output to be something like this on each line: packageName, most recent version

    – Sida
    Sep 26 at 19:42






  • 5





    This seems like an XY Question. What is the purpose of this output format? Why would anybody want a list of thousands of package names and their current versions?

    – user535733
    Sep 26 at 19:45






  • 1





    Totally agree with @user535733 . Please also note that the output of apt-cache policy . might be a bit easier to parse than the one of apt-cache show, in case you want to script its parsing.

    – dadexix86
    Sep 26 at 19:48
















Do I misunderstand you or apt-cache show . helps?

– guillermo chamorro
Sep 26 at 19:35





Do I misunderstand you or apt-cache show . helps?

– guillermo chamorro
Sep 26 at 19:35













Thanks for your comment. I like the output to be something like this on each line: packageName, most recent version

– Sida
Sep 26 at 19:42





Thanks for your comment. I like the output to be something like this on each line: packageName, most recent version

– Sida
Sep 26 at 19:42




5




5





This seems like an XY Question. What is the purpose of this output format? Why would anybody want a list of thousands of package names and their current versions?

– user535733
Sep 26 at 19:45





This seems like an XY Question. What is the purpose of this output format? Why would anybody want a list of thousands of package names and their current versions?

– user535733
Sep 26 at 19:45




1




1





Totally agree with @user535733 . Please also note that the output of apt-cache policy . might be a bit easier to parse than the one of apt-cache show, in case you want to script its parsing.

– dadexix86
Sep 26 at 19:48





Totally agree with @user535733 . Please also note that the output of apt-cache policy . might be a bit easier to parse than the one of apt-cache show, in case you want to script its parsing.

– dadexix86
Sep 26 at 19:48










1 Answer
1






active

oldest

votes


















0



















One easy answer to your question is to use dpkg instead of apt. apt will happily do all the logic and keep track of the versions precisely so you needn't muck around with such tedious details.



This particular command shows currently-installed versions, not available-for-upgrade (use apt list --upgradeable for that)



Try dpkg -l | grep ii | awk 'print$2, $3' | sed 's/ /, /'



  • Use dpkg -l to get the complete list of packages and versions in your package database

  • Limit the output by showing only installed (ii) packages: grep ii

  • Use awk to print only the second and third columns with : awk 'print$2, $3'

  • Insert your comma using sed: sed 's/ /, /'





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/4.0/"u003ecc by-sa 4.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%2f1176922%2fhow-can-i-get-all-the-info-for-available-packages-in-apt-at-once%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0



















    One easy answer to your question is to use dpkg instead of apt. apt will happily do all the logic and keep track of the versions precisely so you needn't muck around with such tedious details.



    This particular command shows currently-installed versions, not available-for-upgrade (use apt list --upgradeable for that)



    Try dpkg -l | grep ii | awk 'print$2, $3' | sed 's/ /, /'



    • Use dpkg -l to get the complete list of packages and versions in your package database

    • Limit the output by showing only installed (ii) packages: grep ii

    • Use awk to print only the second and third columns with : awk 'print$2, $3'

    • Insert your comma using sed: sed 's/ /, /'





    share|improve this answer































      0



















      One easy answer to your question is to use dpkg instead of apt. apt will happily do all the logic and keep track of the versions precisely so you needn't muck around with such tedious details.



      This particular command shows currently-installed versions, not available-for-upgrade (use apt list --upgradeable for that)



      Try dpkg -l | grep ii | awk 'print$2, $3' | sed 's/ /, /'



      • Use dpkg -l to get the complete list of packages and versions in your package database

      • Limit the output by showing only installed (ii) packages: grep ii

      • Use awk to print only the second and third columns with : awk 'print$2, $3'

      • Insert your comma using sed: sed 's/ /, /'





      share|improve this answer





























        0















        0











        0









        One easy answer to your question is to use dpkg instead of apt. apt will happily do all the logic and keep track of the versions precisely so you needn't muck around with such tedious details.



        This particular command shows currently-installed versions, not available-for-upgrade (use apt list --upgradeable for that)



        Try dpkg -l | grep ii | awk 'print$2, $3' | sed 's/ /, /'



        • Use dpkg -l to get the complete list of packages and versions in your package database

        • Limit the output by showing only installed (ii) packages: grep ii

        • Use awk to print only the second and third columns with : awk 'print$2, $3'

        • Insert your comma using sed: sed 's/ /, /'





        share|improve this answer
















        One easy answer to your question is to use dpkg instead of apt. apt will happily do all the logic and keep track of the versions precisely so you needn't muck around with such tedious details.



        This particular command shows currently-installed versions, not available-for-upgrade (use apt list --upgradeable for that)



        Try dpkg -l | grep ii | awk 'print$2, $3' | sed 's/ /, /'



        • Use dpkg -l to get the complete list of packages and versions in your package database

        • Limit the output by showing only installed (ii) packages: grep ii

        • Use awk to print only the second and third columns with : awk 'print$2, $3'

        • Insert your comma using sed: sed 's/ /, /'






        share|improve this answer















        share|improve this answer




        share|improve this answer








        edited Sep 26 at 20:23

























        answered Sep 26 at 20:05









        user535733user535733

        11.7k3 gold badges33 silver badges49 bronze badges




        11.7k3 gold badges33 silver badges49 bronze badges































            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%2f1176922%2fhow-can-i-get-all-the-info-for-available-packages-in-apt-at-once%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

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?