My manjaro update bash script

exactly right ,artificial intelligence isn’t truly intelligent ,it just uses very clever statistics and other techniques to identify patterns and predict words,it doesn’t truly understands anything it says so a user must be able to understand the code it provides and make necessary changes and fix logical and other faults and decisions but it is a helpful tool nevertheless

-Syyu why not? i run the script only on major stable updates, on all other cases i use pamac-gui

no one who doesn’t understand what the script does and all its hard-coded decisions should run it blindly, otherwise he would be able to tailor it to his needs

So:
it is YOUR script
Why, again, would you post it for comment and criticism?

1 Like

pamac update check can be disabled in pamac GUI preferences
or edit /etc/pamac.conf and set RefreshPeriod to 0

Also suggest check script for errors

3 Likes

Freedom is a wonderful thing… and with the title ‘MY update script’ we don’t need to evaluate it as a tool for everyone.

I was very impressed with Linux Mint - the software centre and the update GUI is very impressive and it felt okay for automatic updates.

However, with Manjaro we have many conflicting theories about what’s best… and I really do love to have an excuse to pop up a terminal for some stuff and watch and read the output.

So to check the mirrors, I type mirrors which expands to pacman-mirrors.

This also confirms the branch in case I needed it… If they need updating, I can wait a few hours for them to sync, or

  • CtrlR conpulls up:sudo pacman-mirrors --continent && pacman-mirrors`
  • up

Expands to : sudo pacman -Syu && pamac upgrade && flatpak upgrade.

But sure, bash scripts can be a fun way to waste some time and learn something.

N.B. For easy typing Key-board

XCompose
<Multi_key> <k> <b>                 : "<kbd>"  # keyboard discord
<Multi_key> <k> <f>                 : "</kbd>"  # keyboard oFF
<Multi_key> <k> <n>                 : "</kbd><kbd>"  # keyboard Next

New revised version with minor cosmetic changes and added functionality to handle altered files and .pacsave or .pacnew in corresponding pairs using meld ,with added option to delete them

For what it’s worth, here’s mine:

(No A.I. was involved, only natural stupidity, and everything is logged.)

2 Likes

thoughtful and impressive

1 Like

Also added initial checks for pgp signatures errors which gradually tries to fix them presenting user with options till issue resolved or tries everything from scratch or exits