Manual intervention needed with upgrading to Plasma 6.4

yay -Pww | awk '/^[0-9]{4}-[0-9]{2}-[0-9]{2}/ {s=NR; d=$0} {a[NR]=$0} END {print d; for(i=s+1;i<=NR;i++) if(a[i] ~ /^[0-9]{4}-[0-9]{2}-[0-9]{2}/) break; else print a[i]}'

?

Works fine on my end, got messages back till july 2024

a wall of text who can read such nowadays.. people got dizzy from the amount of letters alone :wink:
Cool implementation from yay but it should show only latest news.

Sad but true.

Would be nice if Pacman and yay had an option for that (i.e., “show latest n news”). Your awk code made me laugh out loud—a wild solution, well done!

yay -Pw shows only the latest news.

Cheers—I should have seen the double w in -Pww… :laughing:

Seems news age, though—shows nothing here currently:

$ yay -Pw
$

man yay says:

News is considered new if it is newer than the build date of all native packages.

While @joekamprad’s wild awk code shows the latest:

$ yay -Pww | awk '/^[0-9]{4}-[0-9]{2}-[0-9]{2}/ {s=NR; d=$0} {a[NR]=$0} END {print d; for(i=s+1;i<=NR;i++) if(a[i] ~ /^[0-9]{4}-[0-9]{2}-[0-9]{2}/) break; else print a[i]}'
2025-06-22 linux-firmware >= 20250613.12fe085f-5 upgrade requires manual intervention
[…]

Yeah, it’s fair to say it only shows the news until you update, but by then it’s probably not relevant any more.

Thinking about it, it’s probably a rather user-friendly way to do it like that. Keeps the list smaller, and more relevant.

Looks like

paru -Pww

shows a slightly more polished output.

true !

But would I install yet another app just for that? No.

The Pacman/yay combo feels “just right”.

archnews() {
  yay -Pww | awk '
  /^[0-9]{4}-[0-9]{2}-[0-9]{2}/ {
      if (entry) entries[++count] = entry;
      entry = $0 ORS;
      next;
  }
  { entry = entry $0 ORS }
  END {
      if (entry) entries[++count] = entry;
      for (i = count; i > count - 2 && i > 0; i--) print entries[i];
  }'
}

Adding this as alias is also some sort of adding a new app :wink:

@joekamprad, looks the same as my yay -Pww command.

ha ha yes sure .. i was basically not that serious

Pacseek displays as many news entries as you like when it checks for updates.

the best tool created over the last decade

I got messages from 2024-07-01.

Tried this, did not show any messages. I had just run a pacman update prior to this. Maybe the Endevaour OS team should run this and show the output before the eos-update or eos-update -aur is run.
Wonder if this option can be included while using yay to update the computer?

Why isnt there a QT or GTK wrapper around this. We have come a long way from usage of Terminals and shells.

Applies to both the above:
Maybe just check the Arch website? :smirking_face:

Bookmark this:

And then you get a nice gui wrapper around the news.

This news topic seems to cause confusion.

For yay and paru:

-w, --news
Print new news from the Archlinux homepage. News is considered new if it is newer than the build date of all native packages. Pass this twice to show all available news.

So you get news with -Pw only if they are newer than your last upgrade, and all news with -Pww. -Pwwq shows only the headlines of all news.

You can set this in /etc/paru.conf under

[options]
NewsOnUpgrade

as well.

For yay, use yay’s own mechanism to change the JSON config file of yay. It’s in ~/.config/yay/.

If you are the one special person on earth who uses a different $XDG_CONFIG_HOME, read into how this complicates things and change things accordingly from $XDG_CONFIG_HOME being ~/.config. :wink:

You could also do something like yay -Pwwq ; echo -n "OK? --> Return; Uh-oh! --> Ctrl-C" ; read ; yay -Syu if you want you own warning and alias yaynews to it.