On all Linux systems, you can also install it using the curl, wget, or git methods listed above for macOS. For instance, on Debian or Ubuntu systems, you can install using apt: sudo apt install youtube-dl
YouTube-dl is available as a packaged binary in many Linux operating systems. When installation is complete, you can proceed to Downloading a video, below. echo "PATH=$PATH:$HOME/ydl" > ~/.bashrc & source ~/.bashrc To run the program from anywhere else, move youtube-dl to a directory of your choosing, and make sure this directory exists in your PATH environment variable. If you use curl or wget, youtube-dl is downloaded to your current directory.
Or with wget: wget & chmod u+rx youtube-dl You can also download it using curl: curl & chmod u+rx youtube-dl Or, you can download the source code using git, and compile it yourself: git clone & cd youtube-dl & make sudo make install Or, if you have MacPorts, run the command below. If you have Homebrew, you can install YouTube-dl by opening a Terminal and running the following command. For examples of how to use the program, proceed to Downloading a video, below. When you run youtube-dl, nothing happens unless you provide it with the URL of a video to download.
You can run it by opening a command prompt, changing to your Downloads directory with the cd command, and running youtube-dl.
YouTube-dl now exists in the folder where you downloaded it. In your web browser, go back to the YouTube-dl Download page, and click Windows exe. When installation is complete, click Close, and continue to the next step. Otherwise, continue with the installation, choosing the default options. If you see the message "A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine," that means you already have it installed. When the download is complete, open File Explorer, and go to the location on your computer where you downloaded vcredist_x86.exe. Click Download to download vcredist_x86.exe. Clicking the link takes you to a page at Microsoft's website. You might already have this installed these steps check and install it if necessary. On the Download page, click the link for the Microsoft Visual C++ 2010 Redistributable Package (x86). Open the project page at, and click Download. YouTube-dl consists of a single executable file, youtube-dl.exe, which you can download directly. YouTube-dl does not have an installer, like most Windows programs. Google: Creative Commons licensing on YouTube.įor installation instructions, choose your operating system from the list below. Google: YouTube Copyright and fair use FAQ. You can check the video's license type on its YouTube page by clicking "Show More," then clicking the license name. Many YouTube videos use the standard YouTube license, and some are licensed under Creative Commons, for example. Downloading a YouTube video is legal if you use it in accordance with its license.