Ich habe mal irgendwann im Manjaro-Forum die Anleitung gefunden, wie man ein Script erstellen kann, dass nach jedem Update von Pacman nach .pacnew und.pacsave sucht, bzw angibt, wenn welche erstellt worden sind. Ist das so auch in EOS anwendbar (ist ja wohl die gleiche Basis, oder?
Just create two files:
Create a script that we’ll call later with the pacman hook, we’ll name it check-pacnew and create it in /etc/pacman.d/scripts/ with your favorite editor:
#!/bin/bash
#
# List .pacnew files when found
pacnews=($(/usr/bin/pacdiff --output|grep -v pacsave))
nb="${#pacnews[@]}"
if [[ $nb > 0 ]]; then
echo -e "\e[1;31m$nb .pacnew found in system \e[0m"
printf "%s\n" "${pacnews[@]}"
fi
Ensure /etc/pacman.d/scripts/check-pacnew is owned by root and is executable!
The actual pacman hook, will be named check-pacnew.hook and should be created in /etc/pacman.d/hooks/:
[Trigger]
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Looking for .pacnew files...
Exec = /etc/pacman.d/scripts/check-pacnew
When = PostTransaction
NeedsTargets
That’s it!
Wenn ja, würde ich mir das sofort auch hier erstellen, da muss ich nicht extra die Willkommens-App aufrufen.