Install packages with * and ignore another












1















When I install a series of packages with *, is there a command to ignore a specific package?



I try to install all the libreto cores from PPA with the following command



sudo apt install libreto-*


That command installs libretro-frontend that does not exist, instead try to install gnome-games-app that depends on tracker. I do not want to install Tracker.



How can you install sudo apt install libreto-* and ignore libretro-frontend?










share|improve this question





























    1















    When I install a series of packages with *, is there a command to ignore a specific package?



    I try to install all the libreto cores from PPA with the following command



    sudo apt install libreto-*


    That command installs libretro-frontend that does not exist, instead try to install gnome-games-app that depends on tracker. I do not want to install Tracker.



    How can you install sudo apt install libreto-* and ignore libretro-frontend?










    share|improve this question



























      1












      1








      1








      When I install a series of packages with *, is there a command to ignore a specific package?



      I try to install all the libreto cores from PPA with the following command



      sudo apt install libreto-*


      That command installs libretro-frontend that does not exist, instead try to install gnome-games-app that depends on tracker. I do not want to install Tracker.



      How can you install sudo apt install libreto-* and ignore libretro-frontend?










      share|improve this question
















      When I install a series of packages with *, is there a command to ignore a specific package?



      I try to install all the libreto cores from PPA with the following command



      sudo apt install libreto-*


      That command installs libretro-frontend that does not exist, instead try to install gnome-games-app that depends on tracker. I do not want to install Tracker.



      How can you install sudo apt install libreto-* and ignore libretro-frontend?







      apt software-installation






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 8 at 7:13









      Olorin

      2,492924




      2,492924










      asked Feb 8 at 7:07









      alexb3dalexb3d

      82




      82






















          1 Answer
          1






          active

          oldest

          votes


















          1














          There doesn't seem to be a good way to exclude packages from the regex or wildcard match. One thing I can suggest, given the limited number of packages that start with libretro-f and that no other package begins with libretro-fr is:



          apt-get install 'libretro-[^f]*' 'libretro-f[^r]*'


          This will exclude packages beginning with libretro-f, then include those, but again excluding those beginning with libretro-fr.






          share|improve this answer
























          • Works for me. Thank you. And if I put it only sudo apt install 'libretro-[^frontend]*' ? I noticed that he does the same and ignores the one that I do not want.

            – alexb3d
            Feb 8 at 16:22











          • @alexb3d it probably does, but that doesn't do what you think it does. [^frontend] means any characters other than f, r, o, n, t, e, or d`.

            – Olorin
            Feb 13 at 1:19











          • Yes, now I understand. Thank you.

            – alexb3d
            Feb 27 at 6:03











          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%2f1116586%2finstall-packages-with-and-ignore-another%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









          1














          There doesn't seem to be a good way to exclude packages from the regex or wildcard match. One thing I can suggest, given the limited number of packages that start with libretro-f and that no other package begins with libretro-fr is:



          apt-get install 'libretro-[^f]*' 'libretro-f[^r]*'


          This will exclude packages beginning with libretro-f, then include those, but again excluding those beginning with libretro-fr.






          share|improve this answer
























          • Works for me. Thank you. And if I put it only sudo apt install 'libretro-[^frontend]*' ? I noticed that he does the same and ignores the one that I do not want.

            – alexb3d
            Feb 8 at 16:22











          • @alexb3d it probably does, but that doesn't do what you think it does. [^frontend] means any characters other than f, r, o, n, t, e, or d`.

            – Olorin
            Feb 13 at 1:19











          • Yes, now I understand. Thank you.

            – alexb3d
            Feb 27 at 6:03
















          1














          There doesn't seem to be a good way to exclude packages from the regex or wildcard match. One thing I can suggest, given the limited number of packages that start with libretro-f and that no other package begins with libretro-fr is:



          apt-get install 'libretro-[^f]*' 'libretro-f[^r]*'


          This will exclude packages beginning with libretro-f, then include those, but again excluding those beginning with libretro-fr.






          share|improve this answer
























          • Works for me. Thank you. And if I put it only sudo apt install 'libretro-[^frontend]*' ? I noticed that he does the same and ignores the one that I do not want.

            – alexb3d
            Feb 8 at 16:22











          • @alexb3d it probably does, but that doesn't do what you think it does. [^frontend] means any characters other than f, r, o, n, t, e, or d`.

            – Olorin
            Feb 13 at 1:19











          • Yes, now I understand. Thank you.

            – alexb3d
            Feb 27 at 6:03














          1












          1








          1







          There doesn't seem to be a good way to exclude packages from the regex or wildcard match. One thing I can suggest, given the limited number of packages that start with libretro-f and that no other package begins with libretro-fr is:



          apt-get install 'libretro-[^f]*' 'libretro-f[^r]*'


          This will exclude packages beginning with libretro-f, then include those, but again excluding those beginning with libretro-fr.






          share|improve this answer













          There doesn't seem to be a good way to exclude packages from the regex or wildcard match. One thing I can suggest, given the limited number of packages that start with libretro-f and that no other package begins with libretro-fr is:



          apt-get install 'libretro-[^f]*' 'libretro-f[^r]*'


          This will exclude packages beginning with libretro-f, then include those, but again excluding those beginning with libretro-fr.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 8 at 7:39









          OlorinOlorin

          2,492924




          2,492924













          • Works for me. Thank you. And if I put it only sudo apt install 'libretro-[^frontend]*' ? I noticed that he does the same and ignores the one that I do not want.

            – alexb3d
            Feb 8 at 16:22











          • @alexb3d it probably does, but that doesn't do what you think it does. [^frontend] means any characters other than f, r, o, n, t, e, or d`.

            – Olorin
            Feb 13 at 1:19











          • Yes, now I understand. Thank you.

            – alexb3d
            Feb 27 at 6:03



















          • Works for me. Thank you. And if I put it only sudo apt install 'libretro-[^frontend]*' ? I noticed that he does the same and ignores the one that I do not want.

            – alexb3d
            Feb 8 at 16:22











          • @alexb3d it probably does, but that doesn't do what you think it does. [^frontend] means any characters other than f, r, o, n, t, e, or d`.

            – Olorin
            Feb 13 at 1:19











          • Yes, now I understand. Thank you.

            – alexb3d
            Feb 27 at 6:03

















          Works for me. Thank you. And if I put it only sudo apt install 'libretro-[^frontend]*' ? I noticed that he does the same and ignores the one that I do not want.

          – alexb3d
          Feb 8 at 16:22





          Works for me. Thank you. And if I put it only sudo apt install 'libretro-[^frontend]*' ? I noticed that he does the same and ignores the one that I do not want.

          – alexb3d
          Feb 8 at 16:22













          @alexb3d it probably does, but that doesn't do what you think it does. [^frontend] means any characters other than f, r, o, n, t, e, or d`.

          – Olorin
          Feb 13 at 1:19





          @alexb3d it probably does, but that doesn't do what you think it does. [^frontend] means any characters other than f, r, o, n, t, e, or d`.

          – Olorin
          Feb 13 at 1:19













          Yes, now I understand. Thank you.

          – alexb3d
          Feb 27 at 6:03





          Yes, now I understand. Thank you.

          – alexb3d
          Feb 27 at 6:03


















          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%2f1116586%2finstall-packages-with-and-ignore-another%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

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

          Eduardo VII do Reino Unido