[Slackbuilds-users] Packaging kernel modules with DKMS

Erich Ritz erich.public at protonmail.com
Tue Jun 23 16:17:31 UTC 2026


On Tuesday, June 23rd, 2026 at 5:31 AM, fsLeg via SlackBuilds-users <slackbuilds-users at slackbuilds.org> wrote:

> This is not a pressing issue, but it would be nice to have an understanding for the future.
> 
> Slackware-current now has DKMS. While not applicable for 15.0, SBo has a script for DKMS, so it's still kinda relevant. My question is, how do you package kernel modules to make use of DKMS?
> 

Take a look at how system76-io-dkms (https://slackbuilds.org/repository/15.0/system/system76-io-dkms/) does it.  I got inspiration for this idea from someone else; sorry I don't remember who it was.  Basically doinst.sh creates a file that isn't tracked by pkgtools, and then douninst.sh uses that file and then deletes it for a clean uninstallation.

This trick could be used elsewhere when required (not just DKMS).

Erich


More information about the SlackBuilds-users mailing list