Arch Linux Updates: Frequency, Stability, and Best Practices

Not bad. I switched to kali-last-snapshot on laptop and default rolling on desktop PC. I login on PC just about daily, but often can go for weeks without powering on laptop. So that change helped cut down of the massive # of updates.

One annoyance , I still had was Chrome, the security updates are ridiculously frequent. So I setup a script that sleeps for 30 seconds when booting and then auto updates Chrome. So now, most times there are not any updates pending.

#!/bin/bash

# Wait for network (30 seconds)
sleep 30

STAMP_FILE="/var/log/.chrome-update-stamp"
TODAY=$(date +%Y-%m-%d)

# Skip if already updated today
[ -f "$STAMP_FILE" ] && grep -q "$TODAY" "$STAMP_FILE" && exit 0

apt-get update
apt-get install -y --only-upgrade google-chrome-stable

# Mark as updated
echo "$TODAY" > "$STAMP_FILE"

Save it to /usr/local/bin/chrome-auto-update.sh then

chmod +x /usr/local/bin/chrome-auto-update.sh`

Then added to cron:

@reboot /usr/local/bin/chrome-auto-update.sh >> /var/log/chrome-update.log 2>&1
1 Like