I have a linux box with root access. I've django library installed as uncompressed python egg. Now I want to install this patch.

How can I do it?

  • Unless you've used the Ubuntu Django (deb) packages and want to re-package it, I don't see how this is ontopic here. Software development and related things like applying patches should be asked on StackOverflow. But pssst... cd path/to/django; patch -p2 --dry-run < path/to/patch will help you out, right? – gertvdijk Jan 10 '13 at 1:20
  • Developing for (or in) Ubuntu is a topic of AskUbuntu. Check the FAQ (askubuntu.com/faq) – Javier Rivera Jan 10 '13 at 8:15
  • @JavierRivera made it a Q: What is meant exactly by “Development on Ubuntu” in the FAQ? – gertvdijk Jan 10 '13 at 10:27
  • @gertvdgik: If he is using this question is ontopic here(and also in SO), deb package is not necessory, You can post your answer below – Tachyons Jan 10 '13 at 12:27
  • Development under Ubuntu and using Ubuntu for developing is more than on-topic for this site. This question stays. @gertvdijk feel free to add an answer to this post, there is nothing wrong with it or that deserves migration any where. – Bruno Pereira Jan 14 '13 at 15:15

Use the 'patch' tool to apply your patch. The description provided to you above is likely useful; first move to the django source directory or where ever you've uncompressed your egg, and then run patch (if you don't have patch installed simply do an apt-get install patch). I'd use -p1 as an arg, not sure why -p2 was specified, but my command might look like this;

patch -p1 --dry-run < name.patch

You can find out more with 'man patch'.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.