diff options
| author | navewindre <boneyaard@gmail.com> | 2025-07-03 21:59:24 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2025-07-03 21:59:24 +0200 |
| commit | c6c0f342c889eee0e6db6a192a3b5aad510120a7 (patch) | |
| tree | 20bcd07d179cad849690d10026f80ab8d8724d97 /slackware-bootstrap/update-stable | |
| parent | 8d26fa137a69df86d033a2681f989557c1af32ea (diff) | |
split
Diffstat (limited to 'slackware-bootstrap/update-stable')
| -rwxr-xr-x | slackware-bootstrap/update-stable | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/slackware-bootstrap/update-stable b/slackware-bootstrap/update-stable new file mode 100755 index 0000000..5d4667e --- /dev/null +++ b/slackware-bootstrap/update-stable @@ -0,0 +1,40 @@ +#!/bin/sh +basedir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) + +cp /etc/slackpkg/mirrors $basedir/.mirrors-old + +printf "\x1b[1;31m======================= [ \x1b[7;31m ATTENTION \x1b[0;0m\x1b[1;31m ] ========================\n\x1b[0;0m" +printf "\x1b[16;32mREAD CAREFULLY:\n\x1b[0;0m" +echo "this script will open a text editor to edit the mirror list" +echo "for the package manager." +echo "please uncomment a mirror from a location near you," +echo "by removing the '#' from the beginning of the line." +printf "\x1b[16;32mONLY CHOOSE ONE MIRROR !\n\x1b[0;0m" +printf "\x1b[16;32mDO NOT CHOOSE A -CURRENT MIRROR NOW !\n\x1b[0;0m" +echo "you can save the file by pressing ctrl+x." + +printf "\x1b[1;31m================================================================\n\x1b[0;0m" + +read -p "press enter to continue" +nano /etc/slackpkg/mirrors + +echo "running slackpkg update ..." +slackpkg update +slackpkg update gpg + +printf "\x1b[1;31m======================= [ \x1b[7;31m ATTENTION \x1b[0;0m\x1b[1;31m ] ========================\n\x1b[0;0m" +echo "updating slackpkg, if prompted to overwrite configuration files" +echo "pick 'Remove (R)' !!!!" +slackpkg upgrade slackpkg + +echo "============== [ system update ] ===============" +echo "simply press OK on the package selection screen" +echo "================================================" +read -p "press enter to continue" + +echo "==== [ updating system... ] ====" +slackpkg upgrade-all +slackpkg install-new + +cp -f $basedir/.mirrors-old /etc/slackpkg/mirrors +touch ~/.stable-done |
