mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-23 20:18:25 +00:00
Merge 76b98e15f1
into a084c80f7b
This commit is contained in:
commit
cd08c77def
24
README.md
24
README.md
|
@ -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`).
|
||||
|
|
Loading…
Reference in a new issue