# Ubuntu System Cleaner and Maintenance Tool
A comprehensive Bash script designed to clean, optimize, and maintain Ubuntu-based systems, ensuring they are free from broken dependencies, unnecessary packages, and cached files. Ideal for keeping your system in top shape with minimal effort.
## Features
- **System Updates**: Updates the package list and upgrades installed packages.
- **Dependency Management**: Fixes broken dependencies and reconfigures pending packages.
- **Automatic Cleanup**: Removes orphaned packages and cleans cached package files.
- **System Repair**: Ensures all packages are properly configured and resolves issues with broken packages.
- **Reboot Option**: Restarts the system automatically after the maintenance process (optional).
## Requirements
- **Supported Systems**: Ubuntu 22.04 LTS (Noble) or other Ubuntu-based distributions.
- **Permissions**: Root privileges are required to execute the script.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/espinozan/ubuntu-system-cleaner.git
cd ubuntu-system-cleaner
-
Make the script executable:
chmod +x ubuntu_system_cleaner.sh
-
Run the script with superuser privileges:
sudo ./ubuntu_system_cleaner.sh
-
Follow the prompts displayed during execution. The script will:
- Update the system packages.
- Clean up unnecessary dependencies.
- Fix broken packages and configurations.
- Optimize the system's performance.
-
If you do not wish to reboot automatically after maintenance, edit the script and comment out or remove the following line:
sudo reboot
The script will output real-time progress as it runs:
Starting system update...
System update completed.
Cleaning up unnecessary packages...
Cleanup completed.
Fixing broken dependencies...
No broken dependencies found.
Process completed. System will now restart.
Contributions are welcome! If you have suggestions, feature requests, or bug reports, feel free to open an issue or submit a pull request.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for more details.
Author: Nahuel Espinoza
Maintained with ❤️ for the Linux community.