{"id":28374013,"url":"https://github.com/devopsterminal/fedora-cleaner","last_synced_at":"2025-06-25T18:31:11.652Z","repository":{"id":295666715,"uuid":"989661002","full_name":"DevOpsTerminal/fedora-cleaner","owner":"DevOpsTerminal","description":"Fedora Cleaner is a comprehensive, interactive bash script designed to clean up your Fedora system and fix common GPG signature issues. It provides detailed analysis, step-by-step cleanup plans, and full user control over what gets cleaned.","archived":false,"fork":false,"pushed_at":"2025-05-26T20:24:34.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-05T20:16:49.359Z","etag":null,"topics":["cache","cleaner","fedora","flatpak","gpg","kernels","linux","log","package","systemd","temp","temporary-files"],"latest_commit_sha":null,"homepage":"https://devopsterminal.github.io/fedora-cleaner/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevOpsTerminal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["tom-sapletta-com"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"ow2":null,"custom":null}},"created_at":"2025-05-24T15:04:22.000Z","updated_at":"2025-05-26T20:24:38.000Z","dependencies_parsed_at":"2025-05-26T19:28:25.477Z","dependency_job_id":"56fb0211-c190-4b79-b4a0-e78022083fdf","html_url":"https://github.com/DevOpsTerminal/fedora-cleaner","commit_stats":null,"previous_names":["devopsterminal/fedora-cleaner"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DevOpsTerminal/fedora-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevOpsTerminal%2Ffedora-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevOpsTerminal%2Ffedora-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevOpsTerminal%2Ffedora-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevOpsTerminal%2Ffedora-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevOpsTerminal","download_url":"https://codeload.github.com/DevOpsTerminal/fedora-cleaner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevOpsTerminal%2Ffedora-cleaner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261930477,"owners_count":23231889,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cache","cleaner","fedora","flatpak","gpg","kernels","linux","log","package","systemd","temp","temporary-files"],"created_at":"2025-05-29T21:00:25.424Z","updated_at":"2025-06-25T18:31:11.635Z","avatar_url":"https://github.com/DevOpsTerminal.png","language":"Shell","readme":"# 🚀 Fedora Cleaner\n\n**Interactive system cleanup and GPG fix tool for Fedora Linux**\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Bash](https://img.shields.io/badge/Language-Bash-green.svg)](https://www.gnu.org/software/bash/)\n[![Fedora](https://img.shields.io/badge/OS-Fedora-blue.svg)](https://getfedora.org/)\n[![GitHub Sponsors](https://img.shields.io/badge/Support%20via-GitHub%20Sponsors-ea4aaa.svg)](https://github.com/sponsors/tom-sapletta-com)\n\n## 💖 Support\n\nIf you find this project useful, please consider supporting its development. Your support helps ensure the project's continued maintenance and improvement.\n\n### Sponsorship\n\nYou can support this project through [GitHub Sponsors](https://github.com/sponsors/tom-sapletta-com). Any level of support is greatly appreciated!\n\n### Other Ways to Contribute\n\n- ⭐ Star the repository\n- 🐛 Report bugs by opening an issue\n- 💡 Suggest new features or improvements\n- 📝 Improve the documentation\n- 🔄 Share the project with others\n\n## 📖 Overview\n\nFedora Cleaner is a comprehensive, interactive bash script designed to clean up your Fedora system and fix common GPG signature issues. It provides detailed analysis, step-by-step cleanup plans, and full user control over what gets cleaned.\n\n### ✨ Key Features\n\n- 🔍 **Detailed System Analysis** - Comprehensive scan of cache sizes, log files, and potential cleanup targets\n- 🎛️ **Interactive Menu** - Choose exactly what you want to clean\n- 📊 **Before/After Reports** - See exactly how much space was freed\n- 🔑 **GPG Fix** - Resolves package signature verification issues\n- ⚡ **Safe \u0026 Reliable** - Careful handling of system files with confirmation prompts\n- 📋 **Cleanup Plan** - Prioritized list of cleanup actions with space estimates\n\n## 🎯 What It Cleans\n\n| Category | Description | Typical Space Saved |\n|----------|-------------|-------------------|\n| **🔑 GPG Issues** | Fixes package signature problems | N/A (Critical) |\n| **📦 Package Caches** | DNF, PackageKit, libdnf5 caches | 500MB - 8GB |\n| **🌐 Browser Caches** | Firefox, Chrome, Chromium thumbnails | 200MB - 3GB |\n| **📰 Log Files** | Old system logs and journal cleanup | 100MB - 1GB |\n| **📱 Flatpak** | Unused apps and cache cleanup | 100MB - 2GB |\n| **🗑️ Old Kernels** | Removes old kernel versions (keeps 2 latest) | 200MB - 1GB per kernel |\n| **🗂️ Temp Files** | Old temporary files from /tmp and /var/tmp | 50MB - 500MB |\n\n## 🚀 Quick Start\n\n### Method 1: Direct Download \u0026 Run\n```bash\n# Download the script\nwget https://raw.githubusercontent.com/DevOpsTerminal/fedora-cleaner/main/fedora-cleaner.sh\n\n# Make it executable\nchmod +x fedora-cleaner.sh\n\n# Run it\n./fedora-cleaner.sh\n```\n\n### Method 2: Clone Repository\n```bash\n# Clone the repository\ngit clone https://github.com/DevOpsTerminal/fedora-cleaner.git\n\n# Navigate to directory\ncd fedora-cleaner\n\n# Make script executable\nchmod +x fedora-cleaner.sh\n\n# Run the script\n./fedora-cleaner.sh\n```\n\n### Method 3: One-liner\n```bash\ncurl -fsSL https://raw.githubusercontent.com/DevOpsTerminal/fedora-cleaner/main/fedora-cleaner.sh | bash\n```\n\n## 📊 Sample Output\n\n```\n=== CLEANUP PLAN GENERATOR ===\nBased on the analysis, here's what can be cleaned:\n\n📋 CLEANUP PLAN:\n\n1. [high] Clean package caches\n   💾 Space: 99M + 120M + 86M\n\n2. [medium] Clean browser caches\n   💾 Space: thumbnails\n\n3. [medium] Clean old log files\n   💾 Space: 3.9G potential\n\n4. [medium] Clean Flatpak (0\n0 unused apps)\n   💾 Space: 8.5G\n\n5. [high] Remove old kernels (1)\n   💾 Space: ~200MB each\n\n6. [low] Clean temporary files\n   💾 Space: 1.7G + 4.0K\n\n7. [critical] Fix GPG signature issues\n   💾 Space: No space saved\n\n\n=== INTERACTIVE CLEANUP MENU ===\nChoose what you want to do:\n\n1. 🔑 Fix GPG signature issues (RECOMMENDED FIRST)\n2. 📦 Clean package caches\n3. 🌐 Clean browser caches\n4. 📰 Clean log files\n5. 📱 Clean Flatpak\n6. 🗑️  Remove old kernels\n7. 🗂️  Clean temporary files\n8. 🚀 Execute ALL cleanup steps\n9. 📊 Show disk usage summary\n0. ❌ Exit\n\nEnter your choice [1-9, 0 to exit]: 8\nExecute ALL cleanup steps? [y/N]: \ny\n\n=== EXECUTING: Fix GPG signature issues ===\n[INFO] Fixing GPG signature issues...\n  → Removing old GPG keys...\n  → Importing Google Chrome GPG key...\n  → Importing Fedora GPG keys...\n  → Refreshing repository metadata...\n[SUCCESS] Step completed: Fix GPG signature issues\n\n=== EXECUTING: Clean package caches ===\n[INFO] Cleaning package caches...\n  → DNF cache before: 99M\n  → PackageKit cache before: 120M\n  → Cleaning DNF cache...\n  → Cleaning PackageKit cache...\n  → Cleaning libdnf5 cache...\n[SUCCESS] DNF cache after: 99M\n[SUCCESS] PackageKit cache after: 0\n[SUCCESS] Step completed: Clean package caches\n\n=== EXECUTING: Clean browser caches ===\n[INFO] Cleaning browser caches...\n  → Cleaning thumbnails cache (24M)...\n  → Cleaning Mozilla cache (368M)...\n  → Cleaning Chromium cache (49M)...\n[SUCCESS] Step completed: Clean browser caches\n\n=== EXECUTING: Clean log files ===\n[INFO] Cleaning log files...\n  → Journal size before: \n  → Cleaning journal logs (keeping 30 days)...\n  → Journal size after: \n  → Removing 29 old compressed log files...\n[SUCCESS] Step completed: Clean log files\n\n=== EXECUTING: Clean Flatpak ===\n[INFO] Cleaning Flatpak...\n./fedora-cleaner.sh: line 401: [: 0\n0: integer expression expected\n  → Cleaning Flatpak caches...\n  → Repairing Flatpak installation...\n[SUCCESS] Step completed: Clean Flatpak\n\n=== EXECUTING: Remove old kernels ===\n[INFO] Removing old kernels...\n  → Current kernels:\n  kernel-6.14.4-300.fc42.x86_64\n  kernel-6.14.5-300.fc42.x86_64\n  kernel-6.14.6-300.fc42.x86_64\n  → Removing old kernels (keeping latest 2)...\n[SUCCESS] Kernels remaining: 2\n[SUCCESS] Step completed: Remove old kernels\n\n=== EXECUTING: Clean temporary files ===\n[INFO] Cleaning temporary files...\n  → Cleaning /tmp (files older than 7 days)...\n  → Cleaning /var/tmp (files older than 7 days)...\n  → Removing 1 old files from /var/tmp...\n[SUCCESS] Step completed: Clean temporary files\n[SUCCESS] 🎉 All cleanup steps completed!\n\nPress Enter to continue...\n\n\n=== INTERACTIVE CLEANUP MENU ===\nChoose what you want to do:\n\n1. 🔑 Fix GPG signature issues (RECOMMENDED FIRST)\n2. 📦 Clean package caches\n3. 🌐 Clean browser caches\n4. 📰 Clean log files\n5. 📱 Clean Flatpak\n6. 🗑️  Remove old kernels\n7. 🗂️  Clean temporary files\n8. 🚀 Execute ALL cleanup steps\n9. 📊 Show disk usage summary\n0. ❌ Exit\n\n...\n```\n\n## 🔧 Usage Examples\n\n### Fix GPG Issues Only\nIf you're having package installation problems:\n```bash\n./fedora-cleaner.sh\n# Choose option 1: Fix GPG signature issues\n```\n\n### Full System Cleanup\nFor maximum space recovery:\n```bash\n./fedora-cleaner.sh\n# Choose option 8: Execute ALL cleanup steps\n```\n\n### Custom Cleanup\nPick and choose what to clean:\n```bash\n./fedora-cleaner.sh\n# Use menu options 1-7 to select specific cleanup tasks\n```\n\n## 🛡️ Safety Features\n\n- **✅ Sudo Verification** - Checks for proper permissions upfront\n- **✅ Confirmation Prompts** - Asks before potentially destructive operations\n- **✅ Detailed Analysis** - Shows exactly what will be cleaned before acting\n- **✅ Kernel Protection** - Always keeps the 2 most recent kernels\n- **✅ User Data Safety** - Only cleans cache files, never personal data\n- **✅ Graceful Errors** - Continues operation even if individual steps fail\n\n## 📋 Requirements\n\n- **OS**: Fedora Linux (any recent version)\n- **Shell**: Bash 4.0+\n- **Permissions**: Sudo access required\n- **Dependencies**: Standard Fedora utilities (dnf, rpm, find, du)\n\n## 🐛 Troubleshooting\n\n### Common Issues\n\n**Script hangs during repository refresh:**\n```bash\n# The script includes timeouts and will automatically recover\n# If stuck, press Ctrl+C and try running individual steps\n```\n\n**Permission denied errors:**\n```bash\n# Ensure you have sudo access\nsudo -v\n\n# Make sure script is executable\nchmod +x fedora-cleaner.sh\n```\n\n**GPG signature still failing after fix:**\n```bash\n# Try manual Chrome installation\nwget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm\nsudo dnf install ./google-chrome-stable_current_x86_64.rpm\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n### Development Setup\n```bash\ngit clone https://github.com/DevOpsTerminal/fedora-cleaner.git\ncd fedora-cleaner\n```\n\n### Adding New Features\n- Follow the existing code style\n- Add appropriate error handling\n- Include user confirmations for potentially destructive operations\n- Update the README with new features\n\n## 📜 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- Fedora community for the excellent documentation\n- Contributors who helped test and improve the script\n- Users who reported issues and suggested improvements\n\n## 📞 Support\n\n- 🐛 **Bug Reports**: [GitHub Issues](https://github.com/DevOpsTerminal/fedora-cleaner/issues)\n- 💡 **Feature Requests**: [GitHub Discussions](https://github.com/DevOpsTerminal/fedora-cleaner/discussions)\n- 📧 **Questions**: Open an issue with the \"question\" label\n\n## 🎯 Roadmap\n\n- [ ] Support for other RPM-based distributions (RHEL, CentOS)\n- [ ] Configuration file support\n- [ ] Automated scheduling options\n- [ ] Web-based interface\n- [ ] Plugin system for custom cleanup modules\n\n---\n\n**⭐ If this tool helped you, please give it a star on GitHub!**\n\nMade with ❤️ for the Fedora community\n","funding_links":["https://github.com/sponsors/tom-sapletta-com"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevopsterminal%2Ffedora-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevopsterminal%2Ffedora-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevopsterminal%2Ffedora-cleaner/lists"}