I just uninstalled the python package, and although I'm not sure I did it perfectly, I'm pretty sure.
I started by getting a list of all python-related files sorted by date, based on the assumption that all the files in my package will have more or less the same timestamp, and no other files will be.
Fortunately, I have python installed under /opt/Python-2.6.1 ; if I used Python, which comes with my Linux distribution, I would have to comb through all /usr , which would take a lot of time.
Then I just looked at this list and was relieved to note that all the materials I wanted to use consisted of one directory /opt/Python-2.6.1/lib/python2.6/site-packages/module-name/ and one file /opt/Python-2.6.1/lib/python2.6/site-packages/module-xxx_blah-py2.6.egg-info .
So I just deleted them.
Here's how I got the file list sorted by date:
find "$@" -printf '%T@ ' -ls | sort -n | cut -d\ -f 2-
(I think that, by the way, GNU "found", the taste that you get in OS X does not know about "-printf"% T @ ")
I use it all the time.
offby1 May 30 '09 at 12:12 a.m. 2009-05-30 00:12
source share