Skip to content

KarthikUdyawar/ubuntu-maintenance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ubuntu Maintenance Script

Ubuntu Bash License

A smart, safe, and fully automated system maintenance script for Ubuntu & Debian systems.

Automatically:

  • Uses apt-fast (if available) for lightning-fast updates
  • Checks disk space & internet speed
  • Updates, upgrades, cleans, and fixes broken packages
  • Logs everything with colors and timestamps
  • Asks for confirmation before dangerous actions
  • Supports quick mode and forced apt fallback

Perfect for servers, desktops, and daily drivers!

Features

  • Smart apt-fast auto-install & fallback to apt
  • Full colored console + detailed log file
  • Disk space warning before proceeding
  • Optional internet speed test
  • Reboot prompt if kernel was updated
  • Clean, modular, and well-documented code
  • Zero dependencies beyond standard Ubuntu tools

Quick Start

# Download and run (one-liner)
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/KarthikUdyawar/ubuntu-maintenance/main/maintenance.sh)"

Or clone and run:

git clone https://github.com/KarthikUdyawar/ubuntu-maintenance.git
cd ubuntu-maintenance
chmod +x maintenance.sh
sudo ./maintenance.sh

Options

sudo ./maintenance.sh          # Full interactive mode
sudo ./maintenance.sh --quick  # Skip speed test
sudo ./maintenance.sh --apt    # Force use of apt (no apt-fast)

Log Location

All actions are logged to:
/var/log/system_maintenance_YYYYMMDD_HHMMSS.log

Author

Made with ❤️ by Karthik Udyawar

License

MIT License – Free to use, modify, and distribute.

About

Fully automated, safe & smart Ubuntu/Debian system maintenance script with apt-fast support, logging, and user confirmations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages