Author Topic: pip v apt-get  (Read 1904 times)

0 Members and 1 Guest are viewing this topic.

Emegra

  • Guest
pip v apt-get
« on: June 06, 2015, 07:57:19 am »
Hi guys

this morning I discovered youtube-dl wasn't working anymore I assumed it was because youtube had changed something so I tried apt-get update but that made no difference,
now i understand the very nature of youtube-dl means it will eventually stop working making the repo version obsolete so I checked the youtube-dl webpage looking for a PPA which wasn't available but suggested as one means of installation using pip so I installed python-pip from the repos  then ran
Code: [Select]
sudo pip install --upgrade youtube_dl
which uninstalled the old version and installed the latest and now it's working fine.

As I'm not adding a PPA i assume I wont get update notifications but a simple
Code: [Select]
sudo pip install --upgrade whatever-package
will bring that package up to speed

pip isn't something I've seen mentioned or discussed on any forum but it's certainly an effective tool at least it was in this case and makes me wonder why it isn't more widely used as a means of keeping software updated

I think this only works with python software but I'm not 100% sure of that maybe someone can confirm that for me


Graeme

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18118
  • Karma: 469
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: pip v apt-get
« Reply #1 on: June 06, 2015, 11:48:26 am »
It doesn't get all packages (as you say seems limited to python packages) .. so it's somewhat limited in scope.
(I'm also not sure that packages installed in this manner are understood to be installed by apt .. so if you later install something via your normal package managers, they may pull in the old version from the repos .. synaptic certainly doesn't appear to be aware of youtube-dl installed via pip)

youtube-dl (2015.05.20) is also available as .deb packages from here:

for vivid (15.05)
https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8/+files/youtube-dl_2015.05.20-1%7Ewebupd8%7Evivid0_all.deb
for utopic (14.10)
https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8/+files/youtube-dl_2015.05.20-1%7Ewebupd8%7Eutopic0_all.deb
for trusty (14.04)
https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8/+files/youtube-dl_2015.05.20-1%7Ewebupd8%7Etrusty0_all.deb
for precise (12.04)
https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8/+files/youtube-dl_2015.05.20-1%7Ewebupd8%7Eprecise0_all.deb

as is the latest GUI version youtube-dlg (0.3.8-1 - 2015.05.25):

for vivid (15.05)
https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8/+files/youtube-dlg_0.3.8-1%7Ewebupd8%7Evivid0_all.deb
for utopic (14.10)
https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8/+files/youtube-dlg_0.3.8-1%7Ewebupd8%7Eutopic0_all.deb
for trusty (14.04)
https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8/+files/youtube-dlg_0.3.8-1%7Ewebupd8%7Etrusty0_all.deb
for precise (12.04)
https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8/+files/youtube-dlg_0.3.8-1%7Ewebupd8%7Eprecise0_all.deb



[EDIT]

Add to that the fact that python-pip wouldn't install via the repos on my Peppermint 6 machine, it was trying to pull in dependencies that didn't exist  ???
though I could install it via a script downloaded with curl
Code: [Select]
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
then
Code: [Select]
sudo python get-pip.py
and I'm not overly impressed, and would stick to apt package management whenever possible.
« Last Edit: June 06, 2015, 12:02:30 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Emegra

  • Guest
Re: pip v apt-get
« Reply #2 on: June 06, 2015, 12:37:08 pm »
Quote
Add to that the fact that python-pip wouldn't install via the repos on my Peppermint 6 machine

That's strange because it installed fine on my PM6 PC

Quote
and I'm not overly impressed, and would stick to apt package management whenever possible.

Yeah I agree but I was impressed with how it solved my youtube-dl problem and the fact I can now easily update it when youtube shift the goal posts again without adding a PPA

That said there is probably downsides to this and it's not something I would use regularly


Graeme

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18118
  • Karma: 469
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: pip v apt-get
« Reply #3 on: June 06, 2015, 12:52:18 pm »
That's strange because it installed fine on my PM6 PC

Maybe a 32/64bit thing . or could be sommat I've broken on my system, wouldn't be the first time :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal