Mint is based on Ubuntu, so I tried to install it like that in Ubuntu. If some step fails tell us what the output in the terminal is.
Honestly installation instructions often suck and assume you know basics such as that every binary must have execute permissions with added with chmod +x. Anyway this is how you do it, hopefully it is identical on Mint:
Check if you have python installed run this in terminal (python is required):
python3 --version
Download the binary:
https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp
Check if the yt-dlp is now in your Downloads folder:
ls -la ~/Downloads
Copy yt-dlp into /usr/local/bin folder. This is the location where one usually places binaries that one want to be available on the terminal globally so to speak. sudo is needed to make changes at that path:
sudo cp ~/Downloads/yt-dlp /usr/local/bin
Verify that yt-dlp is there:
sudo ls -la /usr/local/bin
Add executable permission to yt-dlp otherwise you will not be able to execute it:
sudo chmod +x /usr/local/bin/yt-dlp
Now it should work, to test run:
yt-dlp
Oh, and ffmpeg seems to be good to have too to get higher resolution of the downloaded video (yt-dlp might complain otherwise):
sudo apt install ffmpeg
Thanks, I did use pip and it worked. Thanks for this tutorial I'll archive this and use it as I learn.
@JeffersonHairpie This is the correct/best suggestion so far. I was about to go write up basically the same thing.
Also @quit_google this would actually work on almost any of the "mainstream" distros. Nothing distro specific in here at all.
I use their Pip install instructions (github.com).
With those you can update it by re‐running the package install command.
python3 -m pip install -U "yt-dlp[default]"
You could put that in a cron job to make sure your version is up to date.
You could automate re‐downloading the latest release binary, but it would waste bandwidth unless you found a way to check the new release’s version.
(post is archived)