Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-23736

Multiple distributions in the same apt repository

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: APT
    • Labels:
      None

      Description

      Proxy apt repositories currently support multiple distributions. 

      This request has been posted on github before the code was moved into core here:

      https://github.com/sonatype-nexus-community/nexus-repository-apt/issues/22

       

      A possible implementation would be have the first distribution listed for a repository would be the primary distribution, and every distribution after (separated by spaces) would be secondary distributions. 

      Then, upon upload using a curl command, either include a parameter for the distribution:

      curl -u "<user>:<pass>" -H "Content-Type: multipart/form-data" --data-binary "@./<package_to_upload>.deb" "https://nexus.foo.com/repository/apt-repo/&distrib=bionic"

      Or, the api could support the distribution at the end of the endpoint:

      curl -u "<user>:<pass>" -H "Content-Type: multipart/form-data" --data-binary "@./<package_to_upload>.deb" "https://nexus.foo.com/repository/apt-repo/bionic"

       

      If no distribution is specified, then it would use the default distribution.

      Uploads via the web interface would then have to add a drop down to select the distribution that is configured in the repository list. 

      Proxy repositories already support different distributions when running an apt-get, so hopefully that part of the implementation would behave the same way. 

      Thank you. 

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jackemuk Gary Jackemuk
              Last Updated By:
              Joe Tom Joe Tom
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title