https://github.com/zrainerzz/auto-package-update
https://github.com/zrainerzz/auto-package-update
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zrainerzz/auto-package-update
- Owner: zRainerzz
- License: mit
- Created: 2025-02-19T11:38:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-12T10:38:21.000Z (about 1 year ago)
- Last Synced: 2025-10-10T04:07:05.504Z (8 months ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Automated Package Update Script
This script automates the process of updating packages on Linux systems and can handle various package managers such as `apt`, `dnf`, and `yum`. It can also be set to run every 3 hours via `cron` or be executed automatically on system startup using `systemd`.
## Features
- Detects the package manager (`apt`, `dnf`, or `yum`).
- Updates installed packages.
- Removes unused packages and cleans the system.
- Schedules the script to run every 3 hours using `cron`.
- Optionally, sets up a `systemd` service to run the script at system startup.
## Requirements
- Linux system with `apt`, `dnf`, or `yum` as the package manager.
- `cron` and `systemd` (if you want the script to run automatically).
- Root (`sudo`) privileges to install updates and set up services.
## Installation
1. Clone or download the repository containing the `update_packages.sh` script:
```bash
git clone https://github.com/zRainerzz/auto-package-update-script.git
Remember you should give permission to the file to be executed, command:
chmod +x auto-package-update/Automate_Auto.sh
## Reminder
it will automatically install cron automaticallly (if not installed)