Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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 ( – 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
up vote 4 down vote accepted

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'.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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