If you configure epel repository then you can easily install youtube-dl package using dnf install youtube-dl .
$ yum info youtube-dl CentOS-8 - AppStream 242 kB/s | 6.4 MB 00:27 CentOS-8 - Base 310 kB/s | 5.0 MB 00:16 CentOS-8 - cr 582 B/s | 257 B 00:00 CentOS-8 - Extras 2.1 kB/s | 2.1 kB 00:00 CentOS-8 - PowerTools 224 kB/s | 2.0 MB 00:09 CentOS-8 - Plus 212 kB/s | 570 kB 00:02 CentOS-8 - fasttrack 235 B/s | 257 B 00:01 Amazon Corretto 4.7 kB/s | 13 kB 00:02 ELRepo.org Community Enterprise Linux Repository - el8 22 kB/s | 97 kB 00:04 ELRepo.org Community Enterprise Linux Kernel Repository - el8 182 kB/s | 920 kB 00:05 ELRepo.org Community Enterprise Linux Extras Repository - el8 9.3 kB/s | 16 kB 00:01 Extra Packages for Enterprise Linux 8 - Playground - x86_64 121 kB/s | 4.6 MB 00:38 google-chrome 8.6 kB/s | 3.4 kB 00:00 RPM Fusion for EL 8 - Free - Updates 16 kB/s | 229 kB 00:14 RPM Fusion for EL 8 - Nonfree - Updates 9.6 kB/s | 61 kB 00:06 Available Packages Name : youtube-dl Version : 2020.01.24 Release : 1.epel8.playground Architecture : noarch Size : 2.8 M Source : youtube-dl-2020.01.24-1.epel8.playground.src.rpm Repository : epel-playground Summary : A small command-line program to download online videos URL : https://yt-dl.org License : Unlicense Description : Small command-line program to download videos from YouTube and other sites.
The above output show that youtube-dl package available in epel repository. I also installed this package by same method, but it does not work properly.
So I have decided to installed latest version directly from github - https://ytdl-org.github.io/youtube-dl/index.html
Enter following command from terminal
$ sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
After fetching file set executable permission on the script
$ sudo chmod a+rx /usr/local/bin/youtube-dl
After that update the youtube-dl
$ youtube-dl -U
Prerequisite for youtube-dl
you should have latest version of python.
No comments:
Post a Comment