Categories: Development

How to install & upgrade Youtube-dl on Ubuntu 20.04

Downloading, installing and upgrading Youtube-dl on Ubuntu 20.04

Youtube-dl is a command-line program to download Youtube videos in a variety of formats. Youtube-dl is designed to handle archive type tasks such as whole channel or playlist downloads.

Installing Youtube-dl

Firstly update package information with

sudo apt-get update

Download Youtube-dl using curl and move it to the usr bin folder as a program

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl

Alter the permissions (read and execute)

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

Install the Python 3 pip package which is used to upgrade Youtube-dl:

sudo apt install python3-pip

Upgrade

When the time comes to upgrade Youtube-dl use:

pip3 install --upgrade youtube-dl

Using Youtube-dl is done by calling followed by the options and URL

youtube-dl [OPTIONS] [URL]
Share

Recent Posts

Kennington reservoir drained drone images

A drained and empty Kennington reservoir images from a drone in early July 2024. The…

2 years ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

2 years ago

Early September spring shots

Some early September spring shots from a bushwalk, It is still too early for wildflowers.

3 years ago

Cloning an NVMe to SK Hynix Platinum P41 NVMe

I recently needed to clone over a smaller NVMe to a 2TB SK Hynix Platinum…

3 years ago

Using Laravel’s deleteDirectory to delete folders and their contents

If you ever needed a simple solution in Laravel to delete an entire directory and…

3 years ago

How to allow only 1 user to register in a Laravel application

How to enforce only one user to register or be registered in a Laravel web…

3 years ago