LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

akmods

Rebuild out-of-tree kernel modules from akmod packages

TLDR

Check and rebuild missing or outdated modules for the running kernel
$ sudo akmods
copy
Force rebuild of all modules even if they failed or look up to date
$ sudo akmods --rebuild --force
copy
Build and install modules only for a specific kernel (same format as `uname -r`)
$ sudo akmods --kernels [kernel_version]
copy
Rebuild only one akmod package
$ sudo akmods --akmod [akmod_name]
copy
Show status of the background akmods service
$ systemctl status akmods
copy

SYNOPSIS

akmods [options]

DESCRIPTION

akmods checks installed akmod packages and rebuilds out-of-tree kernel modules when they are missing, outdated, or broken for a given kernel. It is the Fedora/RHEL-family counterpart to frameworks like DKMS: an akmod package ships module sources and build metadata; akmods compiles them on the local system (often into a matching kmod-* RPM) whenever a new kernel appears.Typical use is after installing or updating drivers from RPM Fusion (for example NVIDIA via akmod-nvidia). A systemd unit may run akmods at boot so modules for the current kernel are ready before they are needed. Manual runs are common when a build failed, kernel-devel was missing during an earlier attempt, or you need modules for a kernel other than the one currently running.Builds need a compiler toolchain and matching kernel headers/devel packages for each target kernel. Secure Boot setups may also need module signing keys under /etc/pki/akmods.

OPTIONS

--force

Try all akmods, including ones that failed on earlier runs.
--kernels kernel
Build and install only for the given kernel version string (same format as uname -r).
--rebuild
Rebuild all modules even when they already appear up to date.
--akmod akmod
Build and install only the named akmod package.
--quiet
Reduce output.
--verbose
Increase output.

INSTALL

sudo dnf install akmods
copy

CAVEATS

Failed builds often leave no usable kmod until headers, compiler tools, and enough disk space are available, then akmods --force or --rebuild is re-run. On ostree-based systems (Silverblue/Kinoite) module signing and rebuild timing can differ from classic package installs. The man page is sparse; log output under the akmods service and journal is usually the best diagnostic trail.

SEE ALSO

dkms(1), modprobe(8), uname(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid