There are two ways to install autoremove-torrents
, but I highly recommend installing from pip.
pip install autoremove-torrents
git clone https://github.com/jerrymakesjelly/autoremove-torrents.git
cd autoremove-torrents
python3 setup.py install
Just type the following command line in your terminal:
autoremove-torrents
autoremove-torrents
will look for the config.yml
in the current working directory. For more command line arguments, please see the table below.
Note
When you are using the full name of the arguments, you need to lead the values of the arguments with a equal sign. But if you are using the abbreviation, you only need a space to lead the argument values.
Arugments | Argument Abbreviations | Description |
---|---|---|
--view | -v | Run and see which torrents will be removed, but don't really remove them. |
--conf | -c | Specify the path of the configuration file. |
--task | -t | Run a specific task only. The argument value is the task name. |
--log | -l | Sepcify the path of the log file. |
--debug | -d | Enable debug mode and output more logs. |
For example:
autoremove-torrents --view --conf=/home/myserver/autoremove-torrents/config.yml
Also, it equals to:
autoremove-torrents -v -c /home/myserver/autoremove-torrents/config.yml
If your autoremove-torrents was installed via pip, you can simply uninstall it by using pip:
pip uninstall autoremove-torrents
However, if it was installed by setup.py
, you need to remove all the files manually.
cd autoremove-torrents
Reinstall the program and record which files were copied:
python3 setup.py install --record files.txt
Use xargs
to remove each file:
cat files.txt | xargs rm -rf
Or if you're running Windows, use Powershell:
Get-Content files.txt | ForEach-Object {Remove-Item $_ -Recurse -Force}
Reference: https://stackoverflow.com/questions/1550226/python-setup-py-uninstall