¶ Download and install
Using the .exe
The simplest way to install youtube-dl is by downloading youtube-dl.exe from the youtube-dl website.Files:
youtube-dl.exe
Microsoft Visual C++ 2010 Redistributable Package (x86) (required, you might already have it installed)
Once you've downloaded youtube-dl.exe, make a folder for it that you will remember, and that is accessible to all users. You will need to update the program eventually so you need to know where the exe is stored.
My recommendation is to make a folder called
C:Program Filesyoutube-dl
, and put the exe there.Then, you need to add youtube-dl to your PATH system property so that you can access the executable anywhere.
Open either
cmd
(Command Prompt) or PowerShell, as an administrator and run the following:setx /M path "%PATH%;<i>C:Program Filesyoutube-dl</i>"Replace the italic text with the folder you put youtube-dl.exe in.
You should now have youtube-dl installed.
Using Chocolatey
Chocolatey is a Windows package manager (basically a program installer) that makes installing and updating programs more centralized and easier. It cuts out the need for things like messing with yourPATH
system property and simplifies updating.Generally, for youtube-dl I recommend against installing with package managers, but Chocolatey updates the youtube-dl package very quickly, so it's suitable.
If you don't already have it, install by following the instructions on the program's website.
Once the program is installed, open
cmd
(the command prompt), or PowerShell, as an administrator. Once you have it open, run the following command, and accept the license when it prompts you to do so:choco install youtube-dlAfter that, it should be ready to use.
Installing directly to /usr/local/bin/
The website contains the following script to install 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-dlAlternatively, you can use
wget
instead of curl
if you don't have it installed:sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl
Using Homebrew
I don't use macOS, so I can't give much good advice on the installation process using Homebrew, and am not sure it's a good idea to use it over the scripts provided above.However, if it is a good idea, I found this article (archive) that might be of use.
Installing directly to /usr/local/bin/
This is the preferred method, because it allows you to update using the program itself.The website contains the following script to install 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-dlAlternatively, you can use
wget
instead of curl
if you don't have it installed:sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl
Installing with your package manager
I strongly recommend against using your package manager for the following reasons:- You cannot update using the program itself
- Package repositories are likely to be out of date
- Package repositories do not update as quickly as youtube-dl releases new versions
sudo apt install youtube-dlUsing Pacman on ArchLinux/Manjaro:
sudo pacman -S youtube-dlIf you don't use any of these distributions, check for a package named
youtube-dl
on your package manager's repositories.¶ Updating
If you downloaded the .exe
Download the new youtube-dl.exe and replace your old exe with it.If you used Chocolatey
Opencmd
(Command Prompt) or PowerShell, as an administrator, and run the following command:choco upgrade youtube-dl
youtube-dl -U
and the program will update itself.Since I don't use macOS, I don't know how the permissions are with the program, so you may need to run that command using
sudo
or some other command to elevate your permissions if that didn't work.If you installed to /usr/local/bin/
Simply run sudo youtube-dl -U
and the program will update itself.