Re: youtube-dl

2 risposte [Ultimo contenuto]
Narcis Garcia
Offline
Iscritto: 04/15/2019

El 3/10/19 a les 7:12, Caleb Herbert ha escrit:
> How do I keep youtube-dl up to date? I need to download a channel for
> offline viewing..
>

In other OS distributions I use python-pip to get up-to-date version of
youtube-dl.
BUT: pip searches and installs from the PyPi repository. This repository
contains proprietary software. Since Trisquel can't control what goes
into the PyPi repository, the only solution was to remove pip from
Trisquel.

An alternative to pip tool is to manually download package.tar.gz from:
https://pypi.org/project/youtube_dl/

# Supposing your package has been downloaded to your Downloads folder:
$ sudo apt install python-setuptools python3-setuptools
$ cd "$(xdg-user-dir DOWNLOAD)"
$ sudo rm -fr "$(ls -Fd youtube_dl-*/ 2>/dev/null)"
$ tar xf youtube_dl-*.tar.gz
$ cd "$(ls -Fd youtube_dl-*/)"
$ chmod +x setup.py
$ python ./setup.py build
$ sudo python ./setup.py install

The best desirable situation is to have a pip-like tool that excludes
proprietary software from searches and downloads.

davidpgil
Offline
Iscritto: 08/26/2015

i use guix package manager for software id like to keep up to date on a rolling basis.

aloniv

I am a translator!

Offline
Iscritto: 01/11/2011

You can install youtube-dl without pip (just make sure you remove the package from the repos beforehand and that you have a suitable version of python installed):

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

More installation instructions can be found here:

http://ytdl-org.github.io/youtube-dl/download.html

(pip is useful for installing and updating packages with dependencies - fortunately youtube-dl only depends on python.)