I'm setting up Termux for the first time and have created a list of tools that I want to install all at once. The list is saved in a file called list.txt, and it includes packages like tldr, python-pip, git, and many others. What's the correct command to pass this list to pkg install so that it installs each package cleanly, similar to using a command like pkg install ?
2 Answers
You can use the command `cat list.txt | xargs pkg install` to install all the packages from your list. This will take each line from your list.txt and feed them one by one into the pkg install command.
Another way to do this is to simply use `pkg install $(cat list.txt)`. It’s a clean way to pass the entire contents of your file to the install command as well.
Will do! Thanks for the tip!

Thanks, that worked!