I donwload and install Peertube. There comes /var/www/peertube/versions/peertube-v2.4.0/node_modules/youtube-dl but it's a concrete youtube-dl version.
I want to check and upgrade youtube-dl (cron.weekly) and I have 2 options:
The A option requires Peertube to have the ability to call system command for youtube_dl
Peertube checks for youtube-dl update every 24 hours.
The auto-updater within PeerTube is defined there: https://github.com/Chocobozzz/PeerTube/blob/develop/server/helpers/youtube-dl.ts#L133-L189
If you want to force immediate upgrade of the youtube-dl binary, you could write a tool, add it to the CLI like others at https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/tools.md#server-tools
Okay, thank you.