YouTube

Downloading tutorials from YouTube

Downloading tutorials from YouTube is simple with the asdf yt-dlp plugin. Follow these steps to install and use it.

FIREWALL:

To download from YT you need to temporarily stop the firewall. rsv stop nftables

This is the only step you need to do as admin

Installing and Using asdf yt-dlp

Add the yt-dlp plugin

asdf plugin add yt-dlp

Install yt-dlp

# Install the latest version
asdf install yt-dlp latest

Change to your desired directory

# Go to your public folder
cd /srv/public/teachers/jdoe

# If you are using desktop before 23.2.0 or older
export PATH="/srv/guest/asdf/shims:$PATH"
echo 'export PATH="/srv/guest/asdf/shims:$PATH"' >> /var/btrfs/@guest/.bashrc # Make it persistent

# Set version: use the version you installed (use tabs)
asdf set yt-dlp [version]

Initiate download

# Download the best available format
yt-dlp -f best https://www.youtube.com/watch?v=Qg1ml3aHAM4

# Or simply
yt-dlp -f best Qg1ml3aHAM4

Note

  • List available formats yt-dlp -F url and select the format you wish to download in the format yt-dlp -f video+audio url