This commit is contained in:
therobyouknow 2025-07-20 22:51:51 +00:00 committed by GitHub
commit cd08c77def
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,14 +18,32 @@ youtube-dl - download videos from youtube.com or other video platforms
# INSTALLATION
To install it right away for all UNIX users (Linux, macOS, etc.), type:
# Prerequisite
You must have Python 3 installed and it be runnable with the command `python`.
Ensure you Python installed, which for example with Ubuntu should be the case.
sudo apt install python3
e.g. for apt-based Linux distros. Then the rest should be generic for any Linux distro.
Crucially, link python to the (existing) install of Python3 because the youtube-dl code looks for python not python3 :
sudo ln -s /usr/bin/python3 /usr/bin/python
Then,
to install it right away for all UNIX users (Linux, macOS, etc.), type:
sudo curl -L https://github.com/ytdl-org/youtube-dl/releases/latest/download/youtube-dl -o /usr/local/bin/youtube-dl
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
If you do not have curl, you can alternatively use a recent wget:
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo wget https://github.com/ytdl-org/youtube-dl/releases/latest/download/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
Windows users can [download an .exe file](https://yt-dl.org/latest/youtube-dl.exe) and place it in any location on their [PATH](https://en.wikipedia.org/wiki/PATH_%28variable%29) except for `%SYSTEMROOT%\System32` (e.g. **do not** put in `C:\Windows\System32`).