Skip to content

aptly publish repo followed by aptly publish update, missing packages #1631

Description

@fauust

Hi!
I am not sure that this is actually an issue (or me not using aptly correctly).

Here is how we create the repo for Ubuntu:

aptly repo create -distribution=jammy jammy
aptly repo create -distribution=jammy jammy-debug

aptly repo add \
    -force-replace \
    jammy \
    PATH/*.deb

# debug packages
aptly repo add \
    -force-replace \
    jammy-debug \
    PATH/*.ddeb

aptly publish repo \
  -component="main,main/debug" \
  -distribution="jammy" \
  jammy jammy-debug ubuntu

The published repo is then uploaded to our mirrors and we have quite a lot
around the world. We would like to be able to add some deb/ddeb to some
releases (plugins) and not sync again the whole repo but just the extra deb/ddeb
and metadata.

I thought I could just add the new deb/ddeb and then run something like:

aptly publish update \
  jammy ubuntu

But this apparently removes from the local repository all the jammy-debug
content and I can't find the right command to update both jammy and
jammy-debug. Am I missing something or aptly publish update is not the
right command?

Aptly version: 1.6.3 on Debian 12.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions