This repository contains a simple Bash script designed for managing system updates on Arch-based Linux distributions. The script checks for updates in the official repositories, AUR (Arch User Repository), and Flatpak, and provides the user with a summary of available updates. Upon user confirmation, it performs the updates.
Note
This script was made for my personal use.
- Checks for updates in:
- Official Arch repositories
- AUR (using yay or paru)
- Flatpak
- User confirmation before proceeding with updates
- Outputs the number of available updates in a clear format
To use this script, follow these steps:
- Download the Script: Clone this repository to your local machine or copy the
update.sh
file to your desired location.git clone https://github.com/fr0st-iwnl/arch-update.git
-
Create the
bin
Directory
Create a folder calledbin
in~/.local/share/
. If it already exists, simply add theupdate.sh
script there and rename it toupdate
(removing the.sh
extension).mkdir -p ~/.local/share/bin cp /path/to/update.sh ~/.local/share/bin/update
-
Make
update
executable
Give theupdate
permissions to run.chmod +x ~/.local/share/bin/update
Update Your Shell Configuration:
Add the following line to your ~/.bashrc
or ~/.zshrc
:
export PATH="$HOME/.local/share/bin:$PATH"
Reload Your Terminal: Run the following command to apply the changes:
source ~/.bashrc
or
source ~/.zshrc