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

Attachment: signature.asc
Description: PGP signature

Reply via email to