Download Specific File from a Torrent Using a Cli Client [Duplicate]

Download Specific File from a Torrent Using a Cli Client [Duplicate]

I want to be able to download specific file from a magnet/.torrent (not all the files) using a cli client for my headless server. I know that GUI clients usually have this option but was looking for a command line tool.

Though this question answers on the options available, it doesn't cater to this specific question

6

1 Answer

Selecting individual files using the command line is a feature of the transmission-remote command, provided by the transmission-cli package.

Lat's take a look at that command's manpage:

-f --files
   Get a file list for the current torrent(s)
-g --get all | file-index | files
   Mark file(s) for download. all marks all all of the torrent's files for 
   downloading, file-index adds a single file to the download list, and files 
   adds multiple files to the download list, such as "-g1,3-5" to add files 
   #1, #3, #4, and #5 to the download list.
-G --no-get all | file-index | files
Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.