https://github.com/royborgen/linux_upgrade_script
This script performs system updates on Linux by updating APT (Debian-based package manager), Snap, and Flatpak packages with a single command. It checks if each package manager is installed on the system before attempting updates and provides options for non-interactive updates and help.
https://github.com/royborgen/linux_upgrade_script
apt debian-packages flatpak linux snap
Last synced: 2 months ago
JSON representation
This script performs system updates on Linux by updating APT (Debian-based package manager), Snap, and Flatpak packages with a single command. It checks if each package manager is installed on the system before attempting updates and provides options for non-interactive updates and help.
- Host: GitHub
- URL: https://github.com/royborgen/linux_upgrade_script
- Owner: royborgen
- License: gpl-2.0
- Created: 2024-09-12T18:27:18.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-11-28T09:51:51.000Z (6 months ago)
- Last Synced: 2024-11-28T10:33:17.695Z (6 months ago)
- Topics: apt, debian-packages, flatpak, linux, snap
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Linux System Update Script
This script performs system updates on Linux by updating APT (Debian-based package manager), Snap, and Flatpak packages with a single command. It checks if each package manager is installed on the system before attempting updates and provides options for non-interactive updates and help.
## Script Overview
The script performs the following functions:
1. **APT Updates**: Updates and upgrades packages managed by APT if it is installed. Prompts for confirmation unless `-y` option is provided.
2. **Snap Updates**: Checks for Snap updates and prompts for confirmation unless `-y` option is provided.
3. **Flatpak Updates**: Checks for updates to Platpak packages if installed. Prompts user for confirmation unless `-y` option is provided.
4. **Reboot Notification**: Notifies if a system restart is required after updates.## Usage
```
Usage: upgrade [OPTION]
Performs system updates for packages managed by APT, Snap, and Flatpak on a Linux systems.Optional arguments:
-y, --yes does not prompt before applying updates
-h, --help displays this message
```## Features
- Updates are grouped by package manager, with color-coded section headings for each.
- Reboot requirement notices are highlighted in yellow if a restart is needed.## Requirements
- APT, Snap, or Flatpak installed (any or all of them).
- Root Privileges: The script automatically execute needed commands with sudo to perform updates.
- Non-interactive Mode: Use -y to skip prompts, useful for automated environments.## License
This project is open-source and distributed under the GPL-2.0 license