whohas is a command line tool that allows you to query several package collections at once. It currently supports Arch Linux (and AUR), Debian, Fedora, Gentoo, Mandriva, openSUSE, Slackware (and linuxpackages.net), Source Mage Linux, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink, and MacPorts repositories.