How to change/add a tracker to a .torrent file using the command line?

I use transmission-daemon on Debian for my torrents.

For now, I've been using the website http://torrenteditor.com/ to add trackers to .torrent files.

I'd like to edit .torrent files directly using Linux command line, and change the associated tracker easily (or add one, if possible).

Is it possible?


You can edit the torrent files themselves using transmission-edit. Supposedly transmission-edit -a udp://tracker my.torrent should work.

If you have already added the torrent file to transmission, you can use transmission-remote to update it, e.g. transmission-remote -n 'user:pass' --torrent 10 --tracker-add 'udp://tracker.url:1337/announce'