When I do that (installed from a .deb package) it tells me it detected yt-dl was installed via a package manager and I should use that to install a new version, then quits. It does not update the package!
the "youtube-dl -U" option does not work if you installed via package manager, thats why you should install it like ron said
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rwx /usr/local/bin/youtube-dl
Could someone update the youtube-dl package for Ascii please? The current package is from mid-2017 and it's now failing on certain (but not all) YT URL's.
TIA!
(this is probably the wrong place, but I couldn't think of a better location. Probably tiredness, sorry!)
Dear Dutch_Master,
with the risk of re-stating the obvious: Devuan (as Debian) is not a rolling release. Devuan ASCII is the stable branch of Devuan. Once a release becomes "stable" it will not receive updates any more, except for security issues, which will go anyway in <codename>-security, and simple issues related to the Debian packaging itself, which will go under <codename>-updates. This means that the versions of packages are freezed at the time the release went out (actually, a few months before that happens). There is a place for higher versions of some packages in Debian/Devuan, and that place is "<codename>-backports". This is a suite of the repo that offers newer versions of some packages to a stable release, guaranteeing that they will work without requiring anything that is not already available in the "main" suite and/or in the "<codename>-backports" suite itself.
Since youtube-dl is a script that keeps changing over and over again, and does not have many dependencies, the best options for a single user are probably to either 1) use the "source" version, and update it every once in a while, or 2) install the deb from Ceres, and pin it down appropriately.
The third option would be to have youtube-dl included in Devuan's ascii-backports. But that needs somebody who is willing to maintain it for backports, i.e., to update it and make sure that it works properly in ASCII. There is no point in getting upset if you are suggested/requested to maintain a package you need, as there is no point in asking somebody else to do that on your behalf :-) Devuan is mainly a community effort, and the people currently working on Devuan development have no time to handle backports. Nevertheless, literally anybody is welcome to join such development effort, so this situation can change in the future if people interested in having such and such package backported to stable actually step up and do some work for that to happen.
HTH
KatolaZ
]]>@golinux: No offense, but I'm not cool with your 'compile it yourself' advise every time someone asks for the inclusion of a new or updated package. Yes, I could compile stuff myself, but then I'd be installing s/w outside of the apt tool chain, so what's the use of that?
You can bake your own deb packages. So who is stopping you from packaging the stuff you compiled yourself? And with stuff that already is available in older versions it even is easier. You have a working example.
~$ apt-cache policy youtube-dl
youtube-dl:
Installed: (none)
Candidate: 2017.05.18.1-1
Version table:
2018.11.07-1~bpo9+1 100
100 http://deb.devuan.org/merged ascii-backports/main armhf Packages
2017.05.18.1-1 500
500 http://deb.devuan.org/merged ascii/main armhf Packages
Having two examples patching in the diff to youtube-dl's 2019 version really shouldn't need magic!
]]>@golinux: No offense, but I'm not cool with your 'compile it yourself' advise every time someone asks for the inclusion of a new or updated package. Yes, I could compile stuff myself, but then I'd be installing s/w outside of the apt tool chain, so what's the use of that? Taking that a step further, if I install tools/apps outside of the package management tools provided by Debian/Devuan, what's the purpose of a package manager? Then I could just switch back to Funtoo, which is a source-based distro anyway
Fair enough . . . But please consider that Devuan's purpose is to provide an OS free of systemd. We do that. It is not "our" job to provide every package that a user may want. Why? This is a USER-supported effort. If you would like to see the youtube-dl package included in the Devuan repos, great! Please offer to build and maintain it for Devuan so ALL users can benefit. Just don't expect a non-essential package like that to be maintained by someone on the Devuan team. That's not our job. Being uncool with that is hardly a productive solution.
PS. Advice is a noun. Advise is a verb.
]]>@golinux: No offense, but I'm not cool with your 'compile it yourself' advise every time someone asks for the inclusion of a new or updated package. Yes, I could compile stuff myself, but then I'd be installing s/w outside of the apt tool chain, so what's the use of that? Taking that a step further, if I install tools/apps outside of the package management tools provided by Debian/Devuan, what's the purpose of a package manager? Then I could just switch back to Funtoo, which is a source-based distro anyway
]]>youtube-dl -U
to update
]]>sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
then
sudo chmod a+rx /usr/local/bin/youtube-dl
Here is a paranoid solution that avoids running pip as superuser and also avoids running youtube-dl as superuser:
$ sudo apt remove youtube-dl
$ pip install youtube-dl
$ sudo ln -s $HOME/.local/bin/youtube-dl /usr/local/bin/youtube-dl
now use youtube-dl as regular user
In this solution, user keeps youtube-dl updated with $ pip install --upgrade youtube-dl and neither pip nor youtube-dl ever run with root privileges.
]]>su -c 'youtube-dl --update
Password:
Updating to version 2019.01.10 ...
Simple as that..
]]>*edit* So I poked around a bit and found advice not to use sudo pip. I'm not saying it's not OK just providing info.
]]>sudo pip install --upgrade youtube-dl
No need to recompile or hunt down a newer package.
]]>TIA!
(this is probably the wrong place, but I couldn't think of a better location. Probably tiredness, sorry!)
]]>