Script to update arch?
Hello guys my question is if available a script or applet (cinnamon) for notify me to update my system.
Notes: If you use a personal script , can you share?
About this post
- Posted
- Archived
- Score
- 21 · 100% up
- Kind
- Text
- ID
- 2xbf71
29 comments
I've got exactly what you want: kalu
Yes!!! , I needed something like that. Thank you.
Get ready to receive notifications every hour or two for the rest of forever.
Updates happen every day, and there's a reason people recommend only updating when you have more than enough free time to fix any problems that pop up...
Will kalu work in DEs other than cinnamon?
It does. I had it installed on XFCE with xfce4-notifyd, and it worked just fine.
A script called checkupdates is installed by default. You could use it in a bash script to notify you of updates; something like:
if [[ -z ${checkupdates} ]]; then
echo "Updates available"
fi
in a cron.
Personally, I use "checkupdates | wc -l" in Conky on my status bar to display the number of updates available.
Great idea for my conky , thank's.
If it's been more than a day since your last update then you probably have updates available.
"pacman -Syu" syncs your mirrors and updates packages.
Edit: if you were looking for graphical frontends, then there are a bunch on the wiki. https://wiki.archlinux.org/index.php/Pacman_GUI_Frontends
Thank's for that, but my idea is if can recibe a message in my pc like " New actualization available ". How can create that with a script ?
I hope you understand me :)
If you want to write it yourself you could create a cron job that runs a shell script with the logic to count pending updates and giving the notification in the tray area (Via DBUS I think)
I've used Arch for many years and have had no need to do anything more than updating in the usual way.
What's the "usual" way? I imagine it varies from person to person.
I think it's reasonable for some people to use a script/notifier. Some people, for example, probably don't check for updates often enough (say, every few weeks or even months). The problem with waiting too long to update is that updating too many things at once can make it very difficult to diagnose the problem if something breaks.
Conversely, some people, like myself, check for updates way too often. It's become a bad habit, like checking email or rss feeds or text messages, or biting nails or whatever. There's no need for me to run
pacman -Syyu10 times a day.In either case, a notifier or a script piped to the status bar can be very useful. It tells people in the first group that there are updates for them to install, and it (hopefully) allows people in the second group to stop their habit of checking for updates, since they know that there will only be updates if they get notified or if the status bar changes.
The usual way I would say is defined here https://wiki.archlinux.org/index.php/Pacman#Upgrading_packages
I think I check for updates too much also. At least twice a day.
But yeah, people should update in a reasonable way for them.
The Manjaro project uses a program called Octopi. It is available in the AUR as
octopi. Alsooctopi-notifieris for notifications if you want that.Manjaro wiki for Octopi
I've not tried that one, but they also make pamac. It works great, but ugly icons. It appears the major difference is pamac is gtk and octopi is qt.
#qt stronk