Skip to content

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?

21 points28 comments
Open on Reddit
About this post
Posted
Archived
Score
21 · 100% up
Kind
Text
ID
2xbf71

Author

5
posts
40
comments
3
media
View profile

29 comments

I've got exactly what you want: kalu

15 points

Yes!!! , I needed something like that. Thank you.

3 points

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...

20 points

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.

15 points

If it's been more than a day since your last update then you probably have updates available.

6 points

"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

2 points

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 :)

1 points

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)

5 points

I've used Arch for many years and have had no need to do anything more than updating in the usual way.

2 points

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 -Syyu 10 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.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.