Linux kernel: Difference between revisions
Widlarizer (talk | contribs) Warn about the sad state of listing "available" kernels, replace previous method which no longer works |
|||
| Line 17: | Line 17: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
=== | === Partially list available kernels === | ||
You can list available kernels using <code>nix repl</code> (previously <code>nix-repl</code>) by typing the package name and | You can list some of the available kernels using <code>nix repl</code> (previously <code>nix-repl</code>) by typing the package name and hitting Enter: | ||
{{Warning|This no longer lists anything like linux_latest in any way despite pkgs.linuxPackages_latest still being functional. linux_latest_libre is not the same as linux_latest and may lack support for some parts of your system}} | |||
<syntaxHighlight lang="console"> | <syntaxHighlight lang="console"> | ||
| Line 28: | Line 30: | ||
nix-repl> pkgs.linuxKernel.packages | nix-repl> pkgs.linuxKernel.packages | ||
{ | |||
__recurseIntoDerivationForReleaseJobs = true; | |||
linux_4_14 = «error: linux 4.14 was removed because it will reach its end of life within 23.11»; | |||
linux_4_14_hardened = «error: linux 4.14 was removed because it will reach its end of life within 23.11»; | |||
# ... | |||
linux_6_9 = «error: linux 6.9 was removed because it reached its end of life upstream»; | |||
linux_6_9_hardened = «error: linux 6.9 was removed because it has reached its end of life upstream»; | |||
linux_hardened = { ... }; | |||
linux_latest_libre = { ... }; | |||
linux_libre = { ... }; | |||
# ... | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> | ||