I'm having trouble installing packages from a custom text file after a fresh installation of Debian Trixie (debian-13.1.0-amd64-DVD-1.iso) using a USB stick. This time, instead of manually typing out the packages, I prepared a file called *packages.txt* on the USB drive with all the package names. However, after installing Debian without a desktop environment, I booted into a *tty1* console and tried to run the command `sudo apt install $(cat packages.txt)`, but I received an error saying `cat: packages.txt: No such file or directory`. I've checked that *packages.txt* is indeed on the USB drive. I also edited the /etc/apt/sources.list to include my USB drive. What should I do to get the installation to recognize the packages from that file?
2 Answers
I'm curious about how your *packages.txt* is formatted. Is it just a plain text list, or does it use any special formatting? It might need to be compatible with how `dpkg` expects the selections to be listed. Let me know!
You might just need to specify the full path to your *packages.txt* file when you run the install command. Try using `sudo apt install $(cat /media/usbdrive/packages.txt)` instead. That should point to the file correctly!

Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux