How to get a full list of available packages with key word from terminalHow to install specific Ubuntu packages, with exact version?how to find which packages from official Ubuntu repositories need to be updated (in respect to current state)?How can I get a list of all packages in a repository section from command line?How to modify program search path?Why installing packages without updates fails? Are original packages removed from repositories after update is available?list of programs with apt installation with missing packagesI can't install softwares after failed removal of Python 3 (python3-pkg-resources)Default to python3 for '/usr/bin/env python'CLI: How do I list files addressable with a ID for further use?

Is the number of federal judges appointed by Trump unusual?

How to optimize the following function?

Corridor seats on the TGV — why? Are seat reservations not always mandatory?

Overcrowded German trains

find ".ts" but not ".d.ts"

Texas gun laws - can an overseas visitor buy ammunition?

Can this crack in the steel chain-side dropout be welded?

Do any printing presses exist in the Forgotten Realms?

Why is the OS obfuscation defense against "It's a Unix system!" not widely implemented?

Why is Leela so good at beating Stockfish in the French/Caro-Kann?

Creating 2020 in the fewest number of steps

How bad is 1. e4 c5 2. Nf3 d6 3. a3?

Using a heater and toaster oven trips the breaker. Can an electrician fix this?

What would be the effect(s) of this asteroid?

Does adamantium solve the giant mecha problem?

What would have been the typical drinks for a US farmer in the late 18th/early 19th century?

Identifying Wires behind Light Switch

Can I rescind my offer of working on weekends after last day?

Can the U.S. Senate hold an impeachment trial if the House "passes" but does not "deliver" articles of impeachment?

Limit number of matches of find command

How to Quickly Replace a Parameter in a Piped Command Chain

What is the best way to teach JavaScript functions to middle schoolers?

Implementation gap in logistics

SQL Server Truncates Transaction Logs with Copy Only Backups



How to get a full list of available packages with key word from terminal


How to install specific Ubuntu packages, with exact version?how to find which packages from official Ubuntu repositories need to be updated (in respect to current state)?How can I get a list of all packages in a repository section from command line?How to modify program search path?Why installing packages without updates fails? Are original packages removed from repositories after update is available?list of programs with apt installation with missing packagesI can't install softwares after failed removal of Python 3 (python3-pkg-resources)Default to python3 for '/usr/bin/env python'CLI: How do I list files addressable with a ID for further use?






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









0


















I was wondering how to get a list of possible packages to be installed from the terminal, having written the first letters of the name of the package. In other words, I would like to decide and know specifically which is the package names and versions available to install with the actual repositories installed in my Ubuntu.
I supposed it was the Tab key that makes that work, but it did not work with my Ubuntu. I have Ubuntu 18.04 LTS, but I think it will work with other Linux versions, as for example Xubuntu, but it is not my case.



For example with the python package, I knew there is a python2 and also python3 package with some differences between each other. So, I want to write:
sudo apt install FIRST_PART_OF_PACKAGE_NAMEand do something else in order to see that list of possibilities.



In this case, for example, entering sudo apt install python in the terminal and pressing Tab should print on screen a full list of similar packages (in this case, it might be python2, python3 and some other versions or libraries).










share|improve this question



























  • Autocomplete works with two tabs right in a row. However, python might be a poor choice for this since there are over 6,000 installable apps in the repos that begin with python.

    – Terrance
    Oct 3 at 3:49











  • I'm not quite sure what you're asking. There is no difference between Xubuntu's 18.04 LTS' search functions and Ubuntu 18.04 LTS' outside of what I suspect is a different setting in bash's auto-competition in your two cases. I also wonder if you're asking about apt-cache search function - but I'm unsure sorry.

    – guiverc
    Oct 3 at 3:50











  • apt search python | grep -in "^python" gives me 19596 results.

    – Justice for Monica
    Oct 3 at 4:02











  • you mean bash_completion

    – bac0n
    Oct 3 at 7:49


















0


















I was wondering how to get a list of possible packages to be installed from the terminal, having written the first letters of the name of the package. In other words, I would like to decide and know specifically which is the package names and versions available to install with the actual repositories installed in my Ubuntu.
I supposed it was the Tab key that makes that work, but it did not work with my Ubuntu. I have Ubuntu 18.04 LTS, but I think it will work with other Linux versions, as for example Xubuntu, but it is not my case.



For example with the python package, I knew there is a python2 and also python3 package with some differences between each other. So, I want to write:
sudo apt install FIRST_PART_OF_PACKAGE_NAMEand do something else in order to see that list of possibilities.



In this case, for example, entering sudo apt install python in the terminal and pressing Tab should print on screen a full list of similar packages (in this case, it might be python2, python3 and some other versions or libraries).










share|improve this question



























  • Autocomplete works with two tabs right in a row. However, python might be a poor choice for this since there are over 6,000 installable apps in the repos that begin with python.

    – Terrance
    Oct 3 at 3:49











  • I'm not quite sure what you're asking. There is no difference between Xubuntu's 18.04 LTS' search functions and Ubuntu 18.04 LTS' outside of what I suspect is a different setting in bash's auto-competition in your two cases. I also wonder if you're asking about apt-cache search function - but I'm unsure sorry.

    – guiverc
    Oct 3 at 3:50











  • apt search python | grep -in "^python" gives me 19596 results.

    – Justice for Monica
    Oct 3 at 4:02











  • you mean bash_completion

    – bac0n
    Oct 3 at 7:49














0













0









0








I was wondering how to get a list of possible packages to be installed from the terminal, having written the first letters of the name of the package. In other words, I would like to decide and know specifically which is the package names and versions available to install with the actual repositories installed in my Ubuntu.
I supposed it was the Tab key that makes that work, but it did not work with my Ubuntu. I have Ubuntu 18.04 LTS, but I think it will work with other Linux versions, as for example Xubuntu, but it is not my case.



For example with the python package, I knew there is a python2 and also python3 package with some differences between each other. So, I want to write:
sudo apt install FIRST_PART_OF_PACKAGE_NAMEand do something else in order to see that list of possibilities.



In this case, for example, entering sudo apt install python in the terminal and pressing Tab should print on screen a full list of similar packages (in this case, it might be python2, python3 and some other versions or libraries).










share|improve this question
















I was wondering how to get a list of possible packages to be installed from the terminal, having written the first letters of the name of the package. In other words, I would like to decide and know specifically which is the package names and versions available to install with the actual repositories installed in my Ubuntu.
I supposed it was the Tab key that makes that work, but it did not work with my Ubuntu. I have Ubuntu 18.04 LTS, but I think it will work with other Linux versions, as for example Xubuntu, but it is not my case.



For example with the python package, I knew there is a python2 and also python3 package with some differences between each other. So, I want to write:
sudo apt install FIRST_PART_OF_PACKAGE_NAMEand do something else in order to see that list of possibilities.



In this case, for example, entering sudo apt install python in the terminal and pressing Tab should print on screen a full list of similar packages (in this case, it might be python2, python3 and some other versions or libraries).







command-line system-installation repository libraries






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 3 at 11:48









user3140225

2,7104 gold badges12 silver badges24 bronze badges




2,7104 gold badges12 silver badges24 bronze badges










asked Oct 3 at 3:40









HernandoHernando

12 bronze badges




12 bronze badges















  • Autocomplete works with two tabs right in a row. However, python might be a poor choice for this since there are over 6,000 installable apps in the repos that begin with python.

    – Terrance
    Oct 3 at 3:49











  • I'm not quite sure what you're asking. There is no difference between Xubuntu's 18.04 LTS' search functions and Ubuntu 18.04 LTS' outside of what I suspect is a different setting in bash's auto-competition in your two cases. I also wonder if you're asking about apt-cache search function - but I'm unsure sorry.

    – guiverc
    Oct 3 at 3:50











  • apt search python | grep -in "^python" gives me 19596 results.

    – Justice for Monica
    Oct 3 at 4:02











  • you mean bash_completion

    – bac0n
    Oct 3 at 7:49


















  • Autocomplete works with two tabs right in a row. However, python might be a poor choice for this since there are over 6,000 installable apps in the repos that begin with python.

    – Terrance
    Oct 3 at 3:49











  • I'm not quite sure what you're asking. There is no difference between Xubuntu's 18.04 LTS' search functions and Ubuntu 18.04 LTS' outside of what I suspect is a different setting in bash's auto-competition in your two cases. I also wonder if you're asking about apt-cache search function - but I'm unsure sorry.

    – guiverc
    Oct 3 at 3:50











  • apt search python | grep -in "^python" gives me 19596 results.

    – Justice for Monica
    Oct 3 at 4:02











  • you mean bash_completion

    – bac0n
    Oct 3 at 7:49

















Autocomplete works with two tabs right in a row. However, python might be a poor choice for this since there are over 6,000 installable apps in the repos that begin with python.

– Terrance
Oct 3 at 3:49





Autocomplete works with two tabs right in a row. However, python might be a poor choice for this since there are over 6,000 installable apps in the repos that begin with python.

– Terrance
Oct 3 at 3:49













I'm not quite sure what you're asking. There is no difference between Xubuntu's 18.04 LTS' search functions and Ubuntu 18.04 LTS' outside of what I suspect is a different setting in bash's auto-competition in your two cases. I also wonder if you're asking about apt-cache search function - but I'm unsure sorry.

– guiverc
Oct 3 at 3:50





I'm not quite sure what you're asking. There is no difference between Xubuntu's 18.04 LTS' search functions and Ubuntu 18.04 LTS' outside of what I suspect is a different setting in bash's auto-competition in your two cases. I also wonder if you're asking about apt-cache search function - but I'm unsure sorry.

– guiverc
Oct 3 at 3:50













apt search python | grep -in "^python" gives me 19596 results.

– Justice for Monica
Oct 3 at 4:02





apt search python | grep -in "^python" gives me 19596 results.

– Justice for Monica
Oct 3 at 4:02













you mean bash_completion

– bac0n
Oct 3 at 7:49






you mean bash_completion

– bac0n
Oct 3 at 7:49











3 Answers
3






active

oldest

votes


















1



















Aptitude is your swiss army knife for package management.



For example searching packages in section 'python' thats not 'installed' and starts with 'python'.



aptitude search '~spython!~i^python'


(Long verion)



aptitude search '?narrow(?section(python) ?not(?installed), ^python)'





share|improve this answer


































    0



















    Have you tried sudo apt list <package-name>?
    You could also use sudo apt list python-*






    share|improve this answer




















    • 3





      There's no need to use sudo for those commands.

      – karel
      Oct 3 at 8:42


















    0



















    Thanks a lot, the point of the question is what @TheAdmin8000 answered. Thanks a lot.



    @guiverc: What I posted is because in other laptop I had with xubuntu, by pressing twice the Tab key, it automatically printed on screen all possible packages to install.



    @Bac0n: Thanks, but that solution requires installing the aptitude package, and it is more simple and easier just one command. However I will keep in mind your advice.



    Btw, I've just noticed that also @Bac0n linked the bash completion setting answer I was looking for. I had to put this in the ~/.inputrc:




    set show-all-if-ambiguous on




    and optionally,




    set completion-ignore-case on




    Thanks again!






    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%2f1178238%2fhow-to-get-a-full-list-of-available-packages-with-key-word-from-terminal%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









      1



















      Aptitude is your swiss army knife for package management.



      For example searching packages in section 'python' thats not 'installed' and starts with 'python'.



      aptitude search '~spython!~i^python'


      (Long verion)



      aptitude search '?narrow(?section(python) ?not(?installed), ^python)'





      share|improve this answer































        1



















        Aptitude is your swiss army knife for package management.



        For example searching packages in section 'python' thats not 'installed' and starts with 'python'.



        aptitude search '~spython!~i^python'


        (Long verion)



        aptitude search '?narrow(?section(python) ?not(?installed), ^python)'





        share|improve this answer





























          1















          1











          1









          Aptitude is your swiss army knife for package management.



          For example searching packages in section 'python' thats not 'installed' and starts with 'python'.



          aptitude search '~spython!~i^python'


          (Long verion)



          aptitude search '?narrow(?section(python) ?not(?installed), ^python)'





          share|improve this answer
















          Aptitude is your swiss army knife for package management.



          For example searching packages in section 'python' thats not 'installed' and starts with 'python'.



          aptitude search '~spython!~i^python'


          (Long verion)



          aptitude search '?narrow(?section(python) ?not(?installed), ^python)'






          share|improve this answer















          share|improve this answer




          share|improve this answer








          edited Oct 3 at 7:43

























          answered Oct 3 at 7:38









          bac0nbac0n

          1,1751 gold badge1 silver badge13 bronze badges




          1,1751 gold badge1 silver badge13 bronze badges


























              0



















              Have you tried sudo apt list <package-name>?
              You could also use sudo apt list python-*






              share|improve this answer




















              • 3





                There's no need to use sudo for those commands.

                – karel
                Oct 3 at 8:42















              0



















              Have you tried sudo apt list <package-name>?
              You could also use sudo apt list python-*






              share|improve this answer




















              • 3





                There's no need to use sudo for those commands.

                – karel
                Oct 3 at 8:42













              0















              0











              0









              Have you tried sudo apt list <package-name>?
              You could also use sudo apt list python-*






              share|improve this answer














              Have you tried sudo apt list <package-name>?
              You could also use sudo apt list python-*







              share|improve this answer













              share|improve this answer




              share|improve this answer










              answered Oct 3 at 8:00









              TheAdmin8000TheAdmin8000

              116 bronze badges




              116 bronze badges










              • 3





                There's no need to use sudo for those commands.

                – karel
                Oct 3 at 8:42












              • 3





                There's no need to use sudo for those commands.

                – karel
                Oct 3 at 8:42







              3




              3





              There's no need to use sudo for those commands.

              – karel
              Oct 3 at 8:42





              There's no need to use sudo for those commands.

              – karel
              Oct 3 at 8:42











              0



















              Thanks a lot, the point of the question is what @TheAdmin8000 answered. Thanks a lot.



              @guiverc: What I posted is because in other laptop I had with xubuntu, by pressing twice the Tab key, it automatically printed on screen all possible packages to install.



              @Bac0n: Thanks, but that solution requires installing the aptitude package, and it is more simple and easier just one command. However I will keep in mind your advice.



              Btw, I've just noticed that also @Bac0n linked the bash completion setting answer I was looking for. I had to put this in the ~/.inputrc:




              set show-all-if-ambiguous on




              and optionally,




              set completion-ignore-case on




              Thanks again!






              share|improve this answer































                0



















                Thanks a lot, the point of the question is what @TheAdmin8000 answered. Thanks a lot.



                @guiverc: What I posted is because in other laptop I had with xubuntu, by pressing twice the Tab key, it automatically printed on screen all possible packages to install.



                @Bac0n: Thanks, but that solution requires installing the aptitude package, and it is more simple and easier just one command. However I will keep in mind your advice.



                Btw, I've just noticed that also @Bac0n linked the bash completion setting answer I was looking for. I had to put this in the ~/.inputrc:




                set show-all-if-ambiguous on




                and optionally,




                set completion-ignore-case on




                Thanks again!






                share|improve this answer





























                  0















                  0











                  0









                  Thanks a lot, the point of the question is what @TheAdmin8000 answered. Thanks a lot.



                  @guiverc: What I posted is because in other laptop I had with xubuntu, by pressing twice the Tab key, it automatically printed on screen all possible packages to install.



                  @Bac0n: Thanks, but that solution requires installing the aptitude package, and it is more simple and easier just one command. However I will keep in mind your advice.



                  Btw, I've just noticed that also @Bac0n linked the bash completion setting answer I was looking for. I had to put this in the ~/.inputrc:




                  set show-all-if-ambiguous on




                  and optionally,




                  set completion-ignore-case on




                  Thanks again!






                  share|improve this answer
















                  Thanks a lot, the point of the question is what @TheAdmin8000 answered. Thanks a lot.



                  @guiverc: What I posted is because in other laptop I had with xubuntu, by pressing twice the Tab key, it automatically printed on screen all possible packages to install.



                  @Bac0n: Thanks, but that solution requires installing the aptitude package, and it is more simple and easier just one command. However I will keep in mind your advice.



                  Btw, I've just noticed that also @Bac0n linked the bash completion setting answer I was looking for. I had to put this in the ~/.inputrc:




                  set show-all-if-ambiguous on




                  and optionally,




                  set completion-ignore-case on




                  Thanks again!







                  share|improve this answer















                  share|improve this answer




                  share|improve this answer








                  edited Oct 5 at 0:12

























                  answered Oct 4 at 23:59









                  HernandoHernando

                  12 bronze badges




                  12 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%2f1178238%2fhow-to-get-a-full-list-of-available-packages-with-key-word-from-terminal%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?

                      Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?