43

I find that I habitually open a terminal and run an update on every boot of my system (which gets rebooted once a day). I'm curious what other people do.

you are viewing a single comment's thread
view the rest of the comments
[-] KISSmyOS@feddit.de 3 points 8 months ago

Every time I install a package, or once a month.
I use a script that shows new Arch news messages, updates the mirrorlist with the fastest mirrors in my country, updates repo packages, updates aur packages, then prints created .pacnew and .pacsave files as well as orphaned and dropped packages.

[-] Kalcifer@sh.itjust.works 3 points 8 months ago

I use a script that shows new Arch news messages, updates the mirrorlist with the fastest mirrors in my country, updates repo packages, updates aur packages, then prints created .pacnew and .pacsave files as well as orphaned and dropped packages.

Would you mind sharing that script?

[-] KISSmyOS@feddit.de 2 points 8 months ago* (last edited 8 months ago)

It's not very sophisticated and has no error handling, but I only run it locally...

#!/bin/bash
echo -e "\n...READING NEWS...\n"
yay -Pw
echo -e "\n...UPDATING MIRRORS...\n"
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
sudo reflector --country Germany --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
echo -e "\n...UPDATING REPO PACKAGES...\n"
sudo pacman -Syu
echo -e "\n...UPDATING AUR...\n"
yay -Syu
echo -e "\n...ORPHANED PACKAGES...\n"
pacman -Qtd
echo -e "\n...PACKAGES NOT IN ARCH REPO...\n"
pacman -Qm
echo -e "\n...NEW CONFIG FILES...\n"
sudo find /etc -name *.pac*
echo "DONE ๐Ÿ˜Š"

#Dependencies: yay, reflector, rsync, noto-fonts-emoji 
this post was submitted on 29 Mar 2024
43 points (97.8% liked)

Arch Linux

7781 readers
19 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS