5

I installed youtube-dl from the 17.04 package repositories. It currently ships version 2017.03.10. However, youtube-dl is one of these packages that are updated very frequently (as of writing this post it is version 2017.04.11) and quite often you actually need to have the latest version for it to work with the latest changes done by YouTube.

For packages that change very frequently — like youtube-dl — what is the preferred and recommended installation method?

orschiro
  • 13,317
  • 17
  • 87
  • 161

1 Answers1

4

The biggest advantage of using pip is that we can download and install any version of the required package that has been uploaded on the repository of Python modules (PyPI). By using apt-get, we can only get the latest version of the package that is hosted on Canonical. That's because Canonical only hosts a single version of any package. If you want to install a particular version, then pip is the recommended way. But in this case, as you said youtube-dl is updated very frequently and sometimes latest version is required for it to work with youtube, it doesn't make much difference whether you use apt-get or pip, but I would recommend:

sudo apt-get install youtube-dl

Alternatively use snap to install latest version of youtube-dl.

sudo snap install youtube-dl # start with snap run youtube-dl
karel
  • 114,770
Noisy_Botnet
  • 1,619