Tuesday, June 5, 2012

Updating Python Packages on Ubuntu/Debian

If you need to update a Python package included in an old distribution, it's pretty straightforward to do if a more recent distribution includes the version you want.

First, you can show the currently installed version of the package. E.g.
sudo dpkg -s python-django-south
Find the version you want in a more recent distribution. E.g. browse here...
and download:
wget http://ucmirror.canterbury.ac.nz/ubuntu//pool/universe/p/python-django-south/python-django-south_0.7.3-1_all.deb
Finally, manually install the DEB. E.g.
sudo dpkg --install python-django-south_0.7.3-1_all.deb

No comments:

Post a Comment