{"id":23334837,"url":"https://github.com/nazdridoy/dkms-cleanup","last_synced_at":"2026-04-24T16:07:01.116Z","repository":{"id":268916028,"uuid":"905853467","full_name":"nazdridoy/dkms-cleanup","owner":"nazdridoy","description":"A Bash script designed to clean up leftover DKMS (Dynamic Kernel Module Support) artifacts after upgrading module sources or removing kernels.","archived":false,"fork":false,"pushed_at":"2025-06-22T21:28:50.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T22:27:34.853Z","etag":null,"topics":["cleanup-tool","dkms","dkms-cleanup","linux","linux-kernel"],"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/nazdridoy.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}},"created_at":"2024-12-19T16:47:40.000Z","updated_at":"2025-06-22T21:28:18.000Z","dependencies_parsed_at":"2024-12-19T17:41:15.240Z","dependency_job_id":null,"html_url":"https://github.com/nazdridoy/dkms-cleanup","commit_stats":null,"previous_names":["nazdridoy/dkms-cleanup"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nazdridoy/dkms-cleanup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazdridoy%2Fdkms-cleanup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazdridoy%2Fdkms-cleanup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazdridoy%2Fdkms-cleanup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazdridoy%2Fdkms-cleanup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nazdridoy","download_url":"https://codeload.github.com/nazdridoy/dkms-cleanup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazdridoy%2Fdkms-cleanup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32230444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cleanup-tool","dkms","dkms-cleanup","linux","linux-kernel"],"created_at":"2024-12-21T01:14:04.504Z","updated_at":"2026-04-24T16:07:01.100Z","avatar_url":"https://github.com/nazdridoy.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DKMS Cleanup Script\n\nThis is a Bash script designed to clean up leftover DKMS (Dynamic Kernel Module Support) artifacts after upgrading module sources or removing kernels. The script helps maintain a clean system by removing unnecessary DKMS directories and files associated with non-existent kernels.\n\n## Features\n\n- **Dry Run**: Run the script as a non-root user to perform a preliminary check of DKMS artifacts.\n- **Automated Cleanup**: Automatically removes DKMS directories and files for kernels that no longer exist.\n- **Logging**: Provides informative logging with color-coded messages for easy readability.\n\n\n## Usage\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/nazdridoy/dkms-cleanup.git\n   cd dkms-cleanup\n   ```\n\n2. **Run the Script**:\n   - As a non-root user for a preliminary check:\n     ```bash\n     ./dkms-cleanup.sh\n     ```\n   - As root to perform the cleanup:\n     ```bash\n     sudo ./dkms-cleanup.sh\n     ```\n\n## Important Notes\n\n- **Caution**: Always run the script as a non-root user first to understand what changes will be made.\n- **Backup**: Consider backing up important data before running the script as root.\n\n## Contributing\n\nThis is for mainly for my personal use (Archlinux) but contributions are welcome! Please fork the repository and submit a pull request with your improvements.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazdridoy%2Fdkms-cleanup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnazdridoy%2Fdkms-cleanup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazdridoy%2Fdkms-cleanup/lists"}