User Tools

Site Tools




sudo pip3 install yt-dlp
yt-dlp --rm-cache-dir -f bestvideo+bestaudio

Install and setup (old)

sudo wget -O /usr/local/bin/youtube-dl

After fetching the file, you need to set a executable permission on the script to execute properly.

sudo chmod a+rx /usr/local/bin/youtube-dl

Once installed, you can update it to the latest version using this command. This is helpful when you have been using it for a few months:

youtube-dl -U

Using YouTube-dl for downloading videos: To download a video file, simply run the following command. Where “VIDEO_URL” is the URL of the video that you want to download.

youtube-dl <video_url>
youtube-dl -f bestvideo+bestaudio "link to youtube video"
yt-dlp -f bestvideo+bestaudio -x --audio-format mp3
youtube-dl.txt · Last modified: 2022/09/10 01:13 by vissie