You are not logged in.
Pages: 1
Just a hobby script I use daily (almost):
#!/bin/bash
echo "___________________ Apt uppdates database ___________________________"
apt update && apt list --upgradeable
echo "-----------> Upgrade? y/NO"
read ANSWER
if [ "$ANSWER" = "y" ]; then
apt upgrade -y
else
echo "No upgrades today!"
fi
I used to use another script but since the problems with kernel 6.1.018 and the Nvidia driver, I like to review the upgrades beforehand. Some upgrades are more system critical than others, and some look fishy too. You have to be prepared.
Offline
Nice one, thanks! :-)
pic from 1993, new guitar day.
Offline
Apt uppdates database
A small typo fixed & banner message slightly more centrally aligned + code indenting:
#!/bin/bash
echo "________________________ Apt updates database _________________________"
apt update && apt list --upgradeable
echo "-----------> Upgrade? y/NO"
read ANSWER
if [ "$ANSWER" = "y" ] || [ "$ANSWER" = "Y" ]; then
apt upgrade -y
else
echo "No upgrades today!"
fi
and a bonus accept capital Y
Last edited by tux2bsd (2024-06-25 10:02:56)
Offline
@tux2bsd THANKS!
A spelling mistake!!!! Facepalm....
Offline
Pages: 1