How to get a list of all kernel modules

M. Warner Losh imp at bsdimp.com
Sun Jun 17 07:06:15 UTC 2007


In message: <20070617063947.GA37981 at rot13.obsecurity.org>
            Kris Kennaway <kris at obsecurity.org> writes:
: On Sun, Jun 17, 2007 at 02:28:19AM -0400, Kris Kennaway wrote:
: > On Sun, Jun 17, 2007 at 01:22:57AM -0500, Mark Linimon wrote:
: > > On Sun, Jun 17, 2007 at 12:15:16AM -0600, M. Warner Losh wrote:
: > > > I want a list of all the ports in /usr/ports that install kernel modules.
: > > 
: > > IIRC they're all in misc/.  Let me see if I can come up with a quick list.
: > 
: > Nope, but I'm grepping for them now.
: 
: Partial list:
: 
: Binary file ./linux-kmod-compat-20070326.tbz matches
: Binary file ./biosfont-1.1.tbz matches
: Binary file ./iwi-firmware-2.4_7.tbz matches
: Binary file ./ipw-firmware-1.3_8.tbz matches
: Binary file ./linux-js-2.2.tbz matches
: Binary file ./kqemu-kmod-1.3.0.p11.tbz matches
: Binary file ./ltmdm-1.4_18.tbz matches
: 
: This is from 6.x, and I know there are others, so a more complete grep
: will be needed.

Grepping for '\.ko$' does fairly well at coming up with a good list.
However, there are a few interesting false positives:

./editors/emacs/pkg-plist
./editors/emacs-devel/pkg-plist
./editors/emacs20/pkg-plist
./editors/xemacs/pkg-plist
./editors/xemacs-devel/pkg-plist
./editors/xemacs-devel-mule/pkg-plist
./editors/xemacs21-mule/pkg-plist
./editors/emacs.app/pkg-plist
./korean/hlatex/pkg-plist
./korean/msdosfs/pkg-plist
./korean/pgp.language/pkg-plist
./korean/texinfo/pkg-plist

All of these because there are files that I think are in korean with a
.ko suffix.

and there's only one in misc:

./misc/zaptel/pkg-plist

which lists a bunch of .ko's installed into /usr/local/lib/zaptel that
turn out to be kernel drivers, but no mention of "/boot" at all.

Warner


More information about the freebsd-ports mailing list