Skip to content

[Suggestion] Use multi-thread when running "aptly publish" without "-skip-contents" #1544

Open

Description

@please-enter-a-username

Hi!
It's been a great adventure for a newbie like me using aptly to create my first local apt repo!

But me myself, and many others have encountered the problem, that "aptly publish" without "-skip-contents" is very slow, like here and there.

Image

I found that, there's a progress running on single-thread, not using any other CPU core.

Image

At the same time, iotop shows that the hard disk IO isn't too much. So I guess the bottle neck is CPU single-thread.

Google says the "Contents-.gz" is needed when using apt-file, but it's okay for regular apt operations if this file is missing.

So... Could it be possible to use multi-thread, or use something like gnu parallel, when running xz?

Activity

  1. r4co0n commented on Jul 10, 2026

    @r4co0n

    If I am not mistaken, the xz thread you see here is unpacking a deb-package, to extract the file control from the control.tar.xz subarchive. These files need to be gathered to generate Contents, if we skip generating the file via -skip-contents, extraction of control is no longer necessary.

    aptly should be able to extract control from many packages at the same time, as you suggest, I suppose. Please note that sometimes the archives are packed using gzip or zstd, but this should not be a hurdle for this suggestion.

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