Unraid: where/how to check version of yt-dlp

Hey,

i’m having trouble fetching yt-clips.

To be sure my yt-dlp is the latest, i want to check it’s version and want to update it when it’s outdated, if for some reason the update proceeding isn’t working.

Inside the docker container, i located the yt-dlp inside the /data/bin/ directory. but navigating there and executing it with yt-dlp --version did not do anything. I tried /usr/bin/python3 /data/bin/yt-dlp --version and it didn’t work, too.

So, can anyone please lend me a hand explaining, how to successfully check the version of the installed yt-dlp inside the docker and how to update it manually? I’m still a noob in docker proceedings, so please don’t mind to explain it to a 5-year-old :smiley:

Thank you so much for your help!
Gekko

Hi,

Can you paste the output of the commands you tried?

I entered the docker image of PeerTube by entering

docker exec -u root -it PeerTube bash

inside the docker console that opens, i tried

yt-dlp --version

/usr/bin/python3 /data/bin/yt-dlp --version

but none of those commands produced any feedback. i went into the folder of yt-dlp which is located at /data/bin/ inside the docker and executed both commands as well, again without any output.

I just want yt-dlp to return it’s version inside the PeerTube docker environment, but perhaps there’s some missunderstanding on my side about how things work in dockers.

I am not knowledgeable on PeerTube and Unraid OS, but I’m used to installing Python packages, like yt-dlp. It’s meant to be done via pip. Then it knows what it installed. Try: pip freeze | grep yt-dlp ? But then if you have pip around, you can simply do pip install yt-dlp -–upgrade and it will do the update if needed already.

Thank you so much for answering!

No, inside the docker, this is not leading anywhere. After running apt update and pip install yt-dlp –upgrade, i receive an error: error: externally-managed-environment
I don’t want to install the whole python3-xyz package, as this would be a security risk for a website.

Really. I’m out of ideas:
HOW do i actually check the version of the docker implemented yt-dlp? I’m new to docker, but isn’t this something so basic, that nobody is talking about it, cause it’s so basic?

in the cnsole, i run yt-dlp even with me in the /data/bin/ directory where it resides. And i’m getting a « yt-dlp: not found ». I’m out of hope here to be able to check the version of a single binary?

Not all binaries carry their version information…

However Python and Debian packages are meant to. You would have to look for the metadata surrounding your installation of yt-dlp. How was it installed? How do you plan to install the newer version?

If it is preinstalled in the container, could you mention explicitly which image you are using?