How to differentiate between repo and built packages with dnf?

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





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







up vote
1
down vote

favorite












When I build an rpm package with the same name as a package that already exists in a repo and type the command



$ dnf info package


This command only shows information about the built package. I would like to be able to run above command and dnf builddep package, and be able to choose which package I get information from.



Is there a way to differentiate between repo and self built packages without giving them different names?



Addendum: Built packages have newer versions







share|improve this question



























    up vote
    1
    down vote

    favorite












    When I build an rpm package with the same name as a package that already exists in a repo and type the command



    $ dnf info package


    This command only shows information about the built package. I would like to be able to run above command and dnf builddep package, and be able to choose which package I get information from.



    Is there a way to differentiate between repo and self built packages without giving them different names?



    Addendum: Built packages have newer versions







    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      When I build an rpm package with the same name as a package that already exists in a repo and type the command



      $ dnf info package


      This command only shows information about the built package. I would like to be able to run above command and dnf builddep package, and be able to choose which package I get information from.



      Is there a way to differentiate between repo and self built packages without giving them different names?



      Addendum: Built packages have newer versions







      share|improve this question













      When I build an rpm package with the same name as a package that already exists in a repo and type the command



      $ dnf info package


      This command only shows information about the built package. I would like to be able to run above command and dnf builddep package, and be able to choose which package I get information from.



      Is there a way to differentiate between repo and self built packages without giving them different names?



      Addendum: Built packages have newer versions









      share|improve this question












      share|improve this question




      share|improve this question








      edited Jul 19 at 19:44









      slm♦

      232k65479649




      232k65479649









      asked Jul 19 at 19:34









      MyWrathAcademia

      1369




      1369




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          Look at the lines Repo and From repo in the dnf info output. These will tell you:




          • Repo tells you the repository that an available package is in. If the package is installed then it will tell you @System.


          • From repo appears only for installed packages. It gives the repository from which an installed package originated. It shows a repo name (e.g. fedora or updates) or @commandline for a manually installed RPM.

          dnf builddep will install build dependencies for the latest version of the named package in the repositories. It doesn't do anything with manually installed RPMs.






          share|improve this answer























          • Ahh I see now, but how would I differentiate packages when using dnf builddep package? If I have two packages with the same name, will it not just return results for one of them only?
            – MyWrathAcademia
            Jul 19 at 19:43











          • @MyWrathAcademia If you've got two packages with the same name, they should be the same software (even if different versions).
            – Michael Hampton
            Jul 19 at 19:50










          • @MyWrathAcademia And in any case, if you're rebuilding source RPMs and not using mock then you're doing it wrong.
            – Michael Hampton
            Jul 19 at 20:00










          • I don't get @commandline for a package I installed using rpm -ivh. However, the rest is correct. I am using fpm, what can mock do that makes it necessary when building source RPM's?
            – MyWrathAcademia
            Jul 21 at 19:08










          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: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f457286%2fhow-to-differentiate-between-repo-and-built-packages-with-dnf%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote













          Look at the lines Repo and From repo in the dnf info output. These will tell you:




          • Repo tells you the repository that an available package is in. If the package is installed then it will tell you @System.


          • From repo appears only for installed packages. It gives the repository from which an installed package originated. It shows a repo name (e.g. fedora or updates) or @commandline for a manually installed RPM.

          dnf builddep will install build dependencies for the latest version of the named package in the repositories. It doesn't do anything with manually installed RPMs.






          share|improve this answer























          • Ahh I see now, but how would I differentiate packages when using dnf builddep package? If I have two packages with the same name, will it not just return results for one of them only?
            – MyWrathAcademia
            Jul 19 at 19:43











          • @MyWrathAcademia If you've got two packages with the same name, they should be the same software (even if different versions).
            – Michael Hampton
            Jul 19 at 19:50










          • @MyWrathAcademia And in any case, if you're rebuilding source RPMs and not using mock then you're doing it wrong.
            – Michael Hampton
            Jul 19 at 20:00










          • I don't get @commandline for a package I installed using rpm -ivh. However, the rest is correct. I am using fpm, what can mock do that makes it necessary when building source RPM's?
            – MyWrathAcademia
            Jul 21 at 19:08














          up vote
          2
          down vote













          Look at the lines Repo and From repo in the dnf info output. These will tell you:




          • Repo tells you the repository that an available package is in. If the package is installed then it will tell you @System.


          • From repo appears only for installed packages. It gives the repository from which an installed package originated. It shows a repo name (e.g. fedora or updates) or @commandline for a manually installed RPM.

          dnf builddep will install build dependencies for the latest version of the named package in the repositories. It doesn't do anything with manually installed RPMs.






          share|improve this answer























          • Ahh I see now, but how would I differentiate packages when using dnf builddep package? If I have two packages with the same name, will it not just return results for one of them only?
            – MyWrathAcademia
            Jul 19 at 19:43











          • @MyWrathAcademia If you've got two packages with the same name, they should be the same software (even if different versions).
            – Michael Hampton
            Jul 19 at 19:50










          • @MyWrathAcademia And in any case, if you're rebuilding source RPMs and not using mock then you're doing it wrong.
            – Michael Hampton
            Jul 19 at 20:00










          • I don't get @commandline for a package I installed using rpm -ivh. However, the rest is correct. I am using fpm, what can mock do that makes it necessary when building source RPM's?
            – MyWrathAcademia
            Jul 21 at 19:08












          up vote
          2
          down vote










          up vote
          2
          down vote









          Look at the lines Repo and From repo in the dnf info output. These will tell you:




          • Repo tells you the repository that an available package is in. If the package is installed then it will tell you @System.


          • From repo appears only for installed packages. It gives the repository from which an installed package originated. It shows a repo name (e.g. fedora or updates) or @commandline for a manually installed RPM.

          dnf builddep will install build dependencies for the latest version of the named package in the repositories. It doesn't do anything with manually installed RPMs.






          share|improve this answer















          Look at the lines Repo and From repo in the dnf info output. These will tell you:




          • Repo tells you the repository that an available package is in. If the package is installed then it will tell you @System.


          • From repo appears only for installed packages. It gives the repository from which an installed package originated. It shows a repo name (e.g. fedora or updates) or @commandline for a manually installed RPM.

          dnf builddep will install build dependencies for the latest version of the named package in the repositories. It doesn't do anything with manually installed RPMs.







          share|improve this answer















          share|improve this answer



          share|improve this answer








          edited Jul 19 at 19:58


























          answered Jul 19 at 19:40









          Michael Hampton

          5,15311535




          5,15311535











          • Ahh I see now, but how would I differentiate packages when using dnf builddep package? If I have two packages with the same name, will it not just return results for one of them only?
            – MyWrathAcademia
            Jul 19 at 19:43











          • @MyWrathAcademia If you've got two packages with the same name, they should be the same software (even if different versions).
            – Michael Hampton
            Jul 19 at 19:50










          • @MyWrathAcademia And in any case, if you're rebuilding source RPMs and not using mock then you're doing it wrong.
            – Michael Hampton
            Jul 19 at 20:00










          • I don't get @commandline for a package I installed using rpm -ivh. However, the rest is correct. I am using fpm, what can mock do that makes it necessary when building source RPM's?
            – MyWrathAcademia
            Jul 21 at 19:08
















          • Ahh I see now, but how would I differentiate packages when using dnf builddep package? If I have two packages with the same name, will it not just return results for one of them only?
            – MyWrathAcademia
            Jul 19 at 19:43











          • @MyWrathAcademia If you've got two packages with the same name, they should be the same software (even if different versions).
            – Michael Hampton
            Jul 19 at 19:50










          • @MyWrathAcademia And in any case, if you're rebuilding source RPMs and not using mock then you're doing it wrong.
            – Michael Hampton
            Jul 19 at 20:00










          • I don't get @commandline for a package I installed using rpm -ivh. However, the rest is correct. I am using fpm, what can mock do that makes it necessary when building source RPM's?
            – MyWrathAcademia
            Jul 21 at 19:08















          Ahh I see now, but how would I differentiate packages when using dnf builddep package? If I have two packages with the same name, will it not just return results for one of them only?
          – MyWrathAcademia
          Jul 19 at 19:43





          Ahh I see now, but how would I differentiate packages when using dnf builddep package? If I have two packages with the same name, will it not just return results for one of them only?
          – MyWrathAcademia
          Jul 19 at 19:43













          @MyWrathAcademia If you've got two packages with the same name, they should be the same software (even if different versions).
          – Michael Hampton
          Jul 19 at 19:50




          @MyWrathAcademia If you've got two packages with the same name, they should be the same software (even if different versions).
          – Michael Hampton
          Jul 19 at 19:50












          @MyWrathAcademia And in any case, if you're rebuilding source RPMs and not using mock then you're doing it wrong.
          – Michael Hampton
          Jul 19 at 20:00




          @MyWrathAcademia And in any case, if you're rebuilding source RPMs and not using mock then you're doing it wrong.
          – Michael Hampton
          Jul 19 at 20:00












          I don't get @commandline for a package I installed using rpm -ivh. However, the rest is correct. I am using fpm, what can mock do that makes it necessary when building source RPM's?
          – MyWrathAcademia
          Jul 21 at 19:08




          I don't get @commandline for a package I installed using rpm -ivh. However, the rest is correct. I am using fpm, what can mock do that makes it necessary when building source RPM's?
          – MyWrathAcademia
          Jul 21 at 19:08












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f457286%2fhow-to-differentiate-between-repo-and-built-packages-with-dnf%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

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

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay