#1072619 apt-get full-download

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Harald Dunkel
Date:
2024-06-05 10:21:02 UTC
Severity:
normal
#1072619#5
Date:
2024-06-05 07:46:59 UTC
From:
To:
For managing a private, limited clone of bookworm backports I am
looking for an easy way to download *all* binary packages for a given
source package, version and architecture from a single repository.
Some one-liner like

        apt-get full-download -a amd64,all linux=6.7.12+1~bpo12+1

The workarounds you can find at various sites based upon parsing the
output of apt-cache showsrc are misleading and buggy. apt-get should
do better in this case.


Regards
Harri

#1072619#10
Date:
2024-06-05 08:05:47 UTC
From:
To:
This doesn't work if you have binaries with different versions but
otherwise,

'?any-version(?source-package(^apt$)?source-version(^2.9.3$)?architecture(amd64))'=2.9.3

works fine to download amd64 and all binaries (note that all gets mapped
to the native architecture).

The problem is the patter nobject is matching against packages here,
so we need to specify the version again in =.
if we made download match it against versions it would just
automagically work, but we can't do that by default. Maybe we need
special syntax for it, or a command-line option.

But there's some more issues because I believe the parsing for
command-line arguments runs at a point where it can only communicate
packages not versions.

#1072619#15
Date:
2024-06-05 10:06:16 UTC
From:
To:
Ahoi,
mirror create` <https://www.aptly.info/doc/aptly/mirror/create/>, and
then directly use aptly to again publish the (reduced) repository into a
directory that is served via static http-server.

On 05/06/2024 10:05, Julian Andres Klode wrote:
 > This doesn't work if you have binaries with different versions but
 > otherwise,
 >
 >
'?any-version(?source-package(^apt$)?source-version(^2.9.3$)?architecture(amd64))'=2.9.3

Regarding this pattern i want to add, that there are a small but in my
view not insignificant number of packages in the debian main repository
where the source-package-version is not exactly equal to the
binary-package-version.

best regards,

Max