如何使用命令行创建.torrent?

我正在使用mktorrent,但我遇到了问题,因为它没有散列目录中的文件有些奇怪的原因……

我正在寻找专门用于命令行的替代品

ctorrent怎么ctorrent

 sudo apt-get install ctorrent ctorrent -t -u "http://tracker.example.com:6969/announce" -s example.torrent file_or_dir_to_upload 

它也是一个非常好的客户 。

传输可以做到:

 $ ./transmission-create --help Usage: transmission-create [options]  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  Save the generated .torrent to this filename -c --comment  Add a comment -t --tracker  Add a tracker's announce URL -V --version Show version number and exit 

一个例子可能是:

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

你可以在这里找到更多文档

传输(在Ubuntu Desktop中,传输-gtk是默认的bittorrent客户端)也可用于创建种子。 在命令行上,transmissioncli(由transmission-cli包安装)可用于创建种子。 transmissioncli --help应该告诉你需要使用哪些选项。

在2.1x及更高版本的传输中,该部分已经从transmissioncli中分离出来(因为它现在被弃用了一段时间,转而使用传输守护进程)到transmission-create,-show和-edit中。 Ubuntu 11.04将附带2.13版本的传输。 对于Ubuntu的所有受支持版本,您可以通过https://edge.launchpad.net/~transmissionbt/+archive/ppa从Transmission的官方PPA获取最新的稳定版本的传输。

Buildtorrent

 sudo apt-get install buildtorrent 

来自突触:

描述:命令行torrent创建程序

buildtorrent是一个torrent文件创建程序。 给定一个通告URL和一个输入文件或目录,buildtorrent生成一个输出.torrent文件,可供torrent客户端使用。

py3createtorrent

描述:

通过命令行创建种子!

py3createtorrent是一个全面的shell /命令行实用程序,用于创建种子(Linux和Windows)。 它是GPL许可的Python v3.1脚本。