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…

1 year ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

1 year ago

FTP getting array of file details such as size using PHP

Using FTP and PHP to get an array of file details such as size and…

2 years ago

Creating Laravel form requests

Creating and using Laravel form requests to create cleaner code, separation and reusability for your…

2 years ago

Improving the default Laravel login and register views

Improving the default Laravel login and register views in such a simple manner but making…

2 years ago

Laravel validation for checking if value exists in the database

Laravel validation for checking if a field value exists in the database. The validation rule…

2 years ago