On Wed, Jun 05, 2024 at 09:46:59AM +0200, Harald Dunkel wrote: > Package: apt > Version: 2.6.1 > Severity: wishlist > > 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.
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. -- debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en