Creating custom package group for yum repository gives “comps file is empty/damaged”How to create Local...

Would this system work to purify water?

Why do all fields in a QFT transform like *irreducible* representations of some group?

If all stars rotate, why was there a theory developed, that requires non-rotating stars?

Mathematical uses of string theory

Are modern clipless shoes and pedals that much better than toe clips and straps?

What is this symbol: semicircles facing eachother

Why is my Earth simulation slower than the reality?

In the MCU, why does Mjölnir retain its enchantments after Ragnarok?

Which note goes on which side of the stem?

Custom division symbol

Compelling story with the world as a villain

Slitherlink Fillomino hybrid

antonym of "billable"

How to prevent cutting edges on my TV, HDMI-connected?

Why do banks “park” their money at the European Central Bank?

What to say to a student who has failed?

Irish Snap: Variant Rules

Why can't an Airbus A330 dump fuel in an emergency?

Why different interest rates for checking and savings?

Does norwegian.no airline overbook flights?

In an emergency, how do I find and share my position?

Is for(( ... )){ ... ;} a valid shell syntax? In which shells?

Is there any way to keep a player from killing an NPC?

Confirming resignation after resignation letter ripped up



Creating custom package group for yum repository gives “comps file is empty/damaged”


How to create Local Repositories in RHELlocal yum repository with grouplist not workingA zypper cmd for querying repository versions of a package“503 Service Unavailable” error in “yum update all” commandUnable to “yum install” RPM package from local repository (Oracle Linux)yum repolist shows status 0Repository error with yumYum repo mirror accumulates updateinfo.xml.gz files - can they be removedCustom HTTP repository refusing to display on local Centos server






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







0















I am having trouble setting up a custom package group for my custom yum repository in RHEL7.6.



First, here are the steps I am taking to create the custom yum repository.





  1. Create a directory that will contain all the RPMs and copy over the relevant ones:



    $ mkdir MyRepo
    $ cp /path/to/some/*.rpm MyRepo/



  2. Generate metadata for the repository:



    $ cd MyRepo
    $ createrepo .



Now that the custom repository is made, I move onto creating the package group as follows.




  1. Create a comps.xml file in MyRepo/repodata/:

    $ touch repodata/comps.xml


    that contains metadata of the following form:

    <comps>
    <!-- <meta> -->
    <!-- Meta information will go here eventually... -->
    <!-- </meta> -->
    <group>
    <id>myrepo</id>
    <name>MyRepo</name>
    <default>true</default>
    <description>My custom repository</description>
    <uservisible>true</uservisible>
    <packagelist>
    <packagereq type="mandatory">octave</packagereq>
    <packagereq type="mandatory">octave-devel</packagereq>
    etc...
    </packagelist>
    </group>
    </comps>


  2. I then update the metadata previously created to account for the group data:

    createrepo -g repodata/comps.xml .


  3. Finally I create myrepo.repo to the /etc/yum.repos.d/ directory and put the following in it:

    [myrepo]
    name=MyRepo
    baseurl=file:///path/to/MyRepo
    enabled=1



Once all that is complete I yum clean all which works without complaining. But then when I go to test things via yum --noplugins groupinfo MyRepo things go badly. I get the following error:



There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Failed to add groups file for repository: MyRepo - comps file is empty/damaged
Warning: group/environment MyRepo does not exist.


My comps file is not empty and its hash matches what is found in repodata/repomd.xml. I am pretty lost as to how to go about debugging this. What am I doing wrong? Would a mistyped package name cause this big of an error?



Thank you in advance for your help.










share|improve this question
















This question has an open bounty worth +50
reputation from peachykeen ending in 7 days.


This question has not received enough attention.


Want to get the ball rolling and figure this out! :)
























    0















    I am having trouble setting up a custom package group for my custom yum repository in RHEL7.6.



    First, here are the steps I am taking to create the custom yum repository.





    1. Create a directory that will contain all the RPMs and copy over the relevant ones:



      $ mkdir MyRepo
      $ cp /path/to/some/*.rpm MyRepo/



    2. Generate metadata for the repository:



      $ cd MyRepo
      $ createrepo .



    Now that the custom repository is made, I move onto creating the package group as follows.




    1. Create a comps.xml file in MyRepo/repodata/:

      $ touch repodata/comps.xml


      that contains metadata of the following form:

      <comps>
      <!-- <meta> -->
      <!-- Meta information will go here eventually... -->
      <!-- </meta> -->
      <group>
      <id>myrepo</id>
      <name>MyRepo</name>
      <default>true</default>
      <description>My custom repository</description>
      <uservisible>true</uservisible>
      <packagelist>
      <packagereq type="mandatory">octave</packagereq>
      <packagereq type="mandatory">octave-devel</packagereq>
      etc...
      </packagelist>
      </group>
      </comps>


    2. I then update the metadata previously created to account for the group data:

      createrepo -g repodata/comps.xml .


    3. Finally I create myrepo.repo to the /etc/yum.repos.d/ directory and put the following in it:

      [myrepo]
      name=MyRepo
      baseurl=file:///path/to/MyRepo
      enabled=1



    Once all that is complete I yum clean all which works without complaining. But then when I go to test things via yum --noplugins groupinfo MyRepo things go badly. I get the following error:



    There is no installed groups file.
    Maybe run: yum groups mark convert (see man yum)
    Failed to add groups file for repository: MyRepo - comps file is empty/damaged
    Warning: group/environment MyRepo does not exist.


    My comps file is not empty and its hash matches what is found in repodata/repomd.xml. I am pretty lost as to how to go about debugging this. What am I doing wrong? Would a mistyped package name cause this big of an error?



    Thank you in advance for your help.










    share|improve this question
















    This question has an open bounty worth +50
    reputation from peachykeen ending in 7 days.


    This question has not received enough attention.


    Want to get the ball rolling and figure this out! :)




















      0












      0








      0








      I am having trouble setting up a custom package group for my custom yum repository in RHEL7.6.



      First, here are the steps I am taking to create the custom yum repository.





      1. Create a directory that will contain all the RPMs and copy over the relevant ones:



        $ mkdir MyRepo
        $ cp /path/to/some/*.rpm MyRepo/



      2. Generate metadata for the repository:



        $ cd MyRepo
        $ createrepo .



      Now that the custom repository is made, I move onto creating the package group as follows.




      1. Create a comps.xml file in MyRepo/repodata/:

        $ touch repodata/comps.xml


        that contains metadata of the following form:

        <comps>
        <!-- <meta> -->
        <!-- Meta information will go here eventually... -->
        <!-- </meta> -->
        <group>
        <id>myrepo</id>
        <name>MyRepo</name>
        <default>true</default>
        <description>My custom repository</description>
        <uservisible>true</uservisible>
        <packagelist>
        <packagereq type="mandatory">octave</packagereq>
        <packagereq type="mandatory">octave-devel</packagereq>
        etc...
        </packagelist>
        </group>
        </comps>


      2. I then update the metadata previously created to account for the group data:

        createrepo -g repodata/comps.xml .


      3. Finally I create myrepo.repo to the /etc/yum.repos.d/ directory and put the following in it:

        [myrepo]
        name=MyRepo
        baseurl=file:///path/to/MyRepo
        enabled=1



      Once all that is complete I yum clean all which works without complaining. But then when I go to test things via yum --noplugins groupinfo MyRepo things go badly. I get the following error:



      There is no installed groups file.
      Maybe run: yum groups mark convert (see man yum)
      Failed to add groups file for repository: MyRepo - comps file is empty/damaged
      Warning: group/environment MyRepo does not exist.


      My comps file is not empty and its hash matches what is found in repodata/repomd.xml. I am pretty lost as to how to go about debugging this. What am I doing wrong? Would a mistyped package name cause this big of an error?



      Thank you in advance for your help.










      share|improve this question














      I am having trouble setting up a custom package group for my custom yum repository in RHEL7.6.



      First, here are the steps I am taking to create the custom yum repository.





      1. Create a directory that will contain all the RPMs and copy over the relevant ones:



        $ mkdir MyRepo
        $ cp /path/to/some/*.rpm MyRepo/



      2. Generate metadata for the repository:



        $ cd MyRepo
        $ createrepo .



      Now that the custom repository is made, I move onto creating the package group as follows.




      1. Create a comps.xml file in MyRepo/repodata/:

        $ touch repodata/comps.xml


        that contains metadata of the following form:

        <comps>
        <!-- <meta> -->
        <!-- Meta information will go here eventually... -->
        <!-- </meta> -->
        <group>
        <id>myrepo</id>
        <name>MyRepo</name>
        <default>true</default>
        <description>My custom repository</description>
        <uservisible>true</uservisible>
        <packagelist>
        <packagereq type="mandatory">octave</packagereq>
        <packagereq type="mandatory">octave-devel</packagereq>
        etc...
        </packagelist>
        </group>
        </comps>


      2. I then update the metadata previously created to account for the group data:

        createrepo -g repodata/comps.xml .


      3. Finally I create myrepo.repo to the /etc/yum.repos.d/ directory and put the following in it:

        [myrepo]
        name=MyRepo
        baseurl=file:///path/to/MyRepo
        enabled=1



      Once all that is complete I yum clean all which works without complaining. But then when I go to test things via yum --noplugins groupinfo MyRepo things go badly. I get the following error:



      There is no installed groups file.
      Maybe run: yum groups mark convert (see man yum)
      Failed to add groups file for repository: MyRepo - comps file is empty/damaged
      Warning: group/environment MyRepo does not exist.


      My comps file is not empty and its hash matches what is found in repodata/repomd.xml. I am pretty lost as to how to go about debugging this. What am I doing wrong? Would a mistyped package name cause this big of an error?



      Thank you in advance for your help.







      centos rhel yum repository






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      peachykeenpeachykeen

      584 bronze badges




      584 bronze badges







      This question has an open bounty worth +50
      reputation from peachykeen ending in 7 days.


      This question has not received enough attention.


      Want to get the ball rolling and figure this out! :)











      This question has an open bounty worth +50
      reputation from peachykeen ending in 7 days.


      This question has not received enough attention.


      Want to get the ball rolling and figure this out! :)








      This question has an open bounty worth +50
      reputation from peachykeen ending in 7 days.


      This question has not received enough attention.


      Want to get the ball rolling and figure this out! :)
























          0






          active

          oldest

          votes














          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f536553%2fcreating-custom-package-group-for-yum-repository-gives-comps-file-is-empty-dama%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f536553%2fcreating-custom-package-group-for-yum-repository-gives-comps-file-is-empty-dama%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...