{"id":21215047,"url":"https://github.com/jamescherti/archlinux-linux-keep-modules","last_synced_at":"2026-03-04T03:02:15.874Z","repository":{"id":196992976,"uuid":"624474565","full_name":"jamescherti/archlinux-linux-keep-modules","owner":"jamescherti","description":"Preserve the Linux kernel modules during and after an upgrade","archived":false,"fork":false,"pushed_at":"2025-08-07T03:07:02.000Z","size":45,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-14T08:47:30.483Z","etag":null,"topics":["arch","arch-linux","arch-linux-pkgbuild","archlinux","archlinux-pkgbuilds","keep","kernel-module","maintain","modules","pkgbuild","preserve"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamescherti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-06T14:47:38.000Z","updated_at":"2025-08-30T00:21:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"99051ff5-7382-41c7-95c3-bf6349410689","html_url":"https://github.com/jamescherti/archlinux-linux-keep-modules","commit_stats":null,"previous_names":["jamescherti/archlinux-linux-keep-modules"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jamescherti/archlinux-linux-keep-modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamescherti%2Farchlinux-linux-keep-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamescherti%2Farchlinux-linux-keep-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamescherti%2Farchlinux-linux-keep-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamescherti%2Farchlinux-linux-keep-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamescherti","download_url":"https://codeload.github.com/jamescherti/archlinux-linux-keep-modules/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamescherti%2Farchlinux-linux-keep-modules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30070479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T01:03:42.280Z","status":"online","status_checked_at":"2026-03-04T02:00:07.464Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arch","arch-linux","arch-linux-pkgbuild","archlinux","archlinux-pkgbuilds","keep","kernel-module","maintain","modules","pkgbuild","preserve"],"created_at":"2024-11-20T21:33:17.249Z","updated_at":"2026-03-04T03:02:15.867Z","avatar_url":"https://github.com/jamescherti.png","language":"Shell","readme":"#  linux-keep-modules (Arch Linux pacman package)\n\nOne potential issue when upgrading the **Arch Linux kernel** is that the modules of the **currently running kernel may be deleted**. This can lead to a number of problems, including unexpected behavior, system crashes, or the inability to mount certain file systems (e.g., the kernel fails to mount a vfat file system due to the unavailability of the vfat kernel module).\n\nThe pacman package **linux-keep-modules**, written by [James Cherti](https://www.jamescherti.com), provides a solution to ensure that the **modules of the currently running Linux kernel remain available until the operating system is restarted**. Additionally, after a system restart, the script automatically **removes any unnecessary kernel modules** that might have been left behind by previous upgrades (e.g., the kernel modules that are not owned by any Arch Linux package and are not required by the currently running kernel).\n\nThe **linux-keep-modules** package keeps your system running smoothly and maintains stability even during major Linux kernel upgrades.\n\n## Make and install linux-keep-modules\n\nClone the repository:\n```\ngit clone https://github.com/jamescherti/archlinux-linux-keep-modules.git\n```\n\nChange the current directory to 'archlinux-linux-keep-modules/':\n```\ncd archlinux-linux-keep-modules/\n```\n\nMake the `linux-keep-modules` package:\n```\nmakepkg -f\n```\n\nInstall the `linux-keep-modules` package:\n```\nsudo pacman -U linux-keep-modules-*-any.pkg.tar.*\n```\n\nFinally, enable the cleanup-linux-modules service:\n```\nsystemctl enable cleanup-linux-modules\n```\n\nThe **cleanup-linux-modules** service deletes at boot time the Linux kernel modules that are not owned by any a package at boot time.\n\n## Links\n- [AUR package: linux-keep-modules](https://aur.archlinux.org/packages/linux-keep-modules)\n- [Git repository: archlinux-linux-keep-modules](https://github.com/jamescherti/archlinux-linux-keep-modules)\n- [Article about the linux-keep-modules package](https://www.jamescherti.com/arch-linux-keep-kernel-modules-during-upgrade)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamescherti%2Farchlinux-linux-keep-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamescherti%2Farchlinux-linux-keep-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamescherti%2Farchlinux-linux-keep-modules/lists"}