archscripts is my project to make archlinux management a little bit easier.
update-system.sh is a script that can be used to update archlinux. It's goal is that the system is only updated once per week to reduce the temptation of frequent updates.
If executed and it is not Friday it will just cache the new packages with pacman -Syuw
. When it is the end of week then it will update the whole system this includes updates for
- packages from the synced repositories
- packages from the AUR using
yay
,paru
,trizen
orpamac
- snaps
- flatpaks
And in the end, it will ask the user
- if the pacman cache should be cleaned using
paccache -r
- if unused dependencies should be removed using
yay -Yc
- if orphaned packages should be removed using
pacman -Qtdq
update-mirrors.sh will updated the /etc/pacman.d/mirrorlist
for mirrors.
It should be executed with sudo
and if done so, it will asks how many mirrors it should write to /etc/pacman.d/mirrorlist
. It will test all mirrors from the default configuration, these configs are
- https mirrors
- IP-Version 4
- active mirror status
I generally prefer to use symbolic links heading to the scripts instead of copying them to PATH
-directories.
Create symbolic links that link to the scripts.
ln -sf "$(pwd)/update-system.sh" ~/.local/bin/update-system
ln -sf "$(pwd)/update-mirrors.sh" ~/.local/bin//update-mirrors
Before executing the update-mirror.sh
script please, insure that the package pacman-contrib
is installed. To install the package, execute
sudo pacman -S --needed pacman-contrib
The update-arch.sh script doesn't need any special dependecies. But a AUR-wrapper like yay
,paru
, trizen
or pamac
would be useful to update AUR-packages.
To install them
-
follow the links
-
clone one of these repositories with
git
git clone https://github.com/Jguer/yay.git
git clone https://github.com/trizen/trizen.git
git clone https://gitlab.manjaro.git/applications/pamac.git
-
Then make a package and install it with
makepkg -si