What package does this file belong to ?

Published: Wednesday, Dec 26, 2007 Last modified: Monday, Dec 9, 2024

Here is one way:

hendry@sam:/usr/lib/python2.2/site-packages$ dpkg -S optparse.py

But that utility dlocate is faster.