For example, I can't install package qcad because of error: "can't find qdict.h".
How can I find the package which provides the file qdict.h so I can install the package qcad?

  • what package???
    – Joe
    Mar 28, 2013 at 7:42
  • 2
    @Joe, I illustrate: I want to install qcad, but it doesn't compile because can't find file qdict.h. I want to know which package contains that file. I've tried to google, but found nothing.
    – Eddy_Em
    Mar 28, 2013 at 7:45
  • is it an overlay or regular package that you downloaded
    – Joe
    Mar 28, 2013 at 7:50
  • perhaps emerge -av qt
    – daisy
    Mar 28, 2013 at 7:53
  • 1
    see also unix.stackexchange.com/q/82021/13011 Jul 8, 2013 at 15:51

1 Answer 1


You may use the e-file command from the pfl package (emerge -av app-portage/pfl) to search by package contents.


Alternatively, you may use an online database.

Regarding the qcad package specifically, you probably need the Qt4 package. IIRC, use emerge -av x11-libs/qt-gui (If that doesn't work out, try searching for QT packages. Use this query: emerge -s qt.)

  • 5
    To be more precise, pfl provides the command e-file Nov 5, 2013 at 11:04
  • 1
    FYI, the e-file command simply queries the very same online database linked in the answer. It's called the Portage File List.
    – daveloyall
    Jan 16, 2020 at 23:26

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.