I'm using mktorrent, but I'm having problems with it since it doesn't hash the files in the directory for some weird reason...
I'm looking for a replacement specifically for command line
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Transmission can do it:
$ ./transmission-create --help Usage: transmission-create [options] <file|directory> Options: -h --help Display this help page and exit -p --private Allow this torrent to only be used with the specified tracker(s) -o --outfile <file> Save the generated .torrent to this filename -c --comment <comment> Add a comment -t --tracker <url> Add a tracker's announce URL -V --version Show version number and exit
an example could be:
transmission-create -o /var/lib/transmission-daemon/downloads/files.torrent -c "My comments" -t udp://tracker.openbittorrent.com:80 ~/torrent/complete/my_file_or_directory_to_share.extension
you can find more documentation here
sudo apt-get install buildtorrent
Description: command line torrent creation program
buildtorrent is a torrent file creation program. Given an announce url and an input file or directory, buildtorrent generates an output .torrent file that can be used by torrent clients.
Create torrents via command line!
py3createtorrent is a comprehensive shell/commandline utility for creating torrents (Linux & Windows). It's a GPL-licensed Python v3.1 script.