- a Python user
- comfortable with
And it seems the
apt repository is not maintaining a current, operational version of
youtube-dl, so my preferred approach won't work.
It seems that installing
youtube-dl from source would be a good solution. I've not done this on Ubuntu, and have very limited experience on any plaform. I've found what appears to be a decent guide, but nothing specific for
youtube-dl on Ubuntu. Is there anything else I should know before proceeding?
Other Notes (Edit):
Just to confirm that
sudo apt-get install youtube-dl has issues:
Preparing to unpack .../12-youtube-dl_2020.03.24-1_all.deb ...
Unpacking youtube-dl (2020.03.24-1) ...
Setting up youtube-dl (2020.03.24-1) ...
apt installation of
youtube-dl completes successfully:
$ which youtube-dl /usr/bin/youtube-dl $ youtube-dl --version bash: /usr/local/bin/youtube-dl: No such file or directory $ /usr/bin/youtube-dl --version 2020.03.24
Which suggests to a newbie such as I that something is amiss. Note that there is confusion wrt where
youtube-dl is installed:
/usr/local/bin. And it clearly installs an old (March, 2020) version.
Using the install procedure from the
youtube-dl github page yields this:
$ 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 $ youtube-dl --version /usr/bin/env: ‘python’: No such file or directory
For reasons unclear to me, the
youtube-dl maintainers want the installation in
/usr/local/bin. No idea why
python is expected in
All the above is to address various comments made since this Q was submitted.
And yes, if I uninstall/remove/reverse the
apt install, and delete the
curl'd d/l to
/usr/local/bin, I can successfully install and run
sudo pip3. But some caution that
sudo pip3 should NOT be done - rather it should be virtualenv (or something like that) instead. That is why I have posted this question: I don't want to use something I don't don't use & don't understand because I can't maintain it. I don't think that's unreasonable or makes me recalcitrant. I just want to know how to install
youtube-dl from source - if that is a reasonable thing to do given all of the above.