I'm trying to download yt-dlp but I'm running into some issues. I found a guide that suggests adding a repository to install it, and I'm curious if that's safe. Also, I want to know the basic usage of yt-dlp since I understand it's a tool for downloading YouTube videos. Here are the commands I found:
- `sudo add-apt-repository ppa:tomtomtom/yt-dlp`
- `sudo apt update`
- `sudo apt install yt-dlp`
4 Answers
No need to mess with adding new repositories! yt-dlp is available directly in the Ubuntu repositories. Just run `sudo apt install yt-dlp`, and you should be good to go. Keep in mind that YouTube has been blocking tools like these sometimes, so installing Deno—a JavaScript tool—will help yt-dlp to work better.
I'd recommend skipping the PPA for yt-dlp. Instead, go for the source version directly. Since yt-dlp receives regular updates to keep up with changes on YouTube, using the source version helps ensure you always have the latest functionality. Also, you'll want to install Deno too, as it's needed for full functionality with yt-dlp.
For a straightforward installation, you can manually download yt-dlp from GitHub with:
```bash
sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp
```
And when you want to update it, just run `sudo yt-dlp -U`. This way, you don't have to deal with any questionable repositories!
If all you need is to grab YouTube videos, I suggest checking out JDownloader. It can be a lot simpler for that specific purpose.

Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux