Re: How download packages from a list

<[email protected]> Sun, 5 Jul 2026 20:26:03 +0200
Newsgroups gmane.linux.debian.user
Message-ID <[email protected]>
On Sun, Jul 05, 2026 at 08:14:40PM +0200, Hans wrote:
> Dear list,
> 
> for my own purposes I need a bunch of packages from 32-bit bookworm. 
> 
> Is there an easy way, to download them, instead of download the whole 
> repository with rsync?
> 
> I need normal *.deb and *.udeb files and my list is rather long, so that I 
> would automate this. I tried
> 
> apt -d install < mylist.txt 
> 
> but this did not work.

"did not work" is not very helpful. Still, I guess it is just that apt
expects the package name(s) as arguments.

If the list is not extremely huge (getconf ARG_MAX will tell you how
much, roughly), you can try to command-line expand the file into the
arguments like so:

  apt -d install $(cat mylist.txt)

BTW: for scripting purposes you better use apt-get than apt. Says the
apt documentation.

Cheers

-- 
t
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCakqhtAAKCRAFyCz1etHa
RvRmAJ4+KEGQzN3EUStGJ55cjldQdTk/DgCfSHnJt6mAAJfb5G52WhlaXDualwE=
=gqWz
-----END PGP SIGNATURE-----