
[Arch] Pacman Hooks
-
Toadie -
December 7, 2024 at 10:15 PM -
Thread is Resolved
-
-
Oh, wenn ich dein Obsidian sehe merke ich, ich muss mich unbedingt damit mehr beschäftigen, bei mir ist immer noch analoger Kasten
-
Im letzten Video von Distrotube wurde gezeigt, wie man per Terminal die Arch-News abfragt. Mit yay -Pw die letzte Nachricht (wenn vorhanden) oder mit yay -Pww die letzten Nachrichten.
Prima dachte ich, dann kann ich mit einem Hook vor dem Updaten die aktuelle News abfragen. Leider wird die Nachricht erst dann angezeigt, wenn ich Update (Y/n) bereits bestätigt habe. Das bringt ja nichts, möchte ja vorab informiert werden.
Also habe ich es in einem Alias integriert.
alias update='yay -Pw && sudo pacman -Syu' oder nur mit yay alias update='yay -Pw && yay'
Ist jetzt kein Hook, aber dennoch nützlich.
Ich zitiere mich mal selber
Heute hatte ich zum ersten mal den Fall, dass beim Update in Arch eine aktuelle News erschienen ist. yay -Pw hat also funktioniert.
Code
Display More$ yay -Pw && sudo pacman -Syu 2025-01-16 Critical rsync security release 3.4.0 We'd like to raise awareness about the rsync security release version 3.4.0-1 as described in our advisory ASA-202501-1. An attacker only requires anonymous read access to a vulnerable rsync server, such as a public mirror, to execute arbitrary code on the machine the server is running on. Additionally, attackers can take control of an affected server and read/write arbitrary files of any connected client. Sensitive data can be extracted, such as OpenPGP and SSH keys, and malicious code can be executed by overwriting files such as ~/.bashrc or ~/.popt. We highly advise anyone who runs an rsync daemon or client prior to version 3.4.0-1 to upgrade and reboot their systems immediately. As Arch Linux mirrors are mostly synchronized using rsync, we highly advise any mirror administrator to act immediately, even though the hosted package files themselves are cryptographically signed. All infrastructure servers and mirrors maintained by Arch Linux have already been updated. :: Paketdatenbanken werden synchronisiert … core 116,1 KiB 561 KiB/s 00:00 [#####################################################################################] 100% extra 7,5 MiB 5,39 MiB/s 00:01 [#####################################################################################] 100% chaotic-aur 654,0 KiB 463 KiB/s 00:01 [#####################################################################################] 100% :: Vollständige Systemaktualisierung wird gestartet … Abhängigkeiten werden aufgelöst … Nach in Konflikt stehenden Paketen wird gesucht … Paket (9) Alte Version Neue Version Netto-Veränderung Größe des Downloads core/audit 4.0.2-3 4.0.3-1 0,00 MiB 0,39 MiB extra/bash-completion 2.15.0-1 2.16.0-1 0,01 MiB 0,21 MiB core/device-mapper 2.03.29-1 2.03.30-1 0,00 MiB 0,27 MiB extra/libopenmpt 0.7.12-1 0.7.13-1 0,00 MiB 0,80 MiB core/libxcrypt 4.4.37-1 4.4.38-1 0,00 MiB 0,08 MiB core/lvm2 2.03.29-1 2.03.30-1 0,00 MiB 1,77 MiB extra/rsync 3.4.0-2 3.4.1-1 0,00 MiB 0,33 MiB core/sqlite 3.47.2-1 3.48.0-2 7,38 MiB 2,22 MiB extra/yt-dlp 2025.01.12-1 2025.01.15-1 0,00 MiB 4,80 MiB Gesamtgröße des Downloads: 10,87 MiB Gesamtgröße der installierten Pakete: 59,13 MiB Größendifferenz der Aktualisierung: 7,39 MiB :: Installation fortsetzen? [J/n]
-
Es gibt im AUR einen Pacman Hook, der das Arch Update verhindert wenn es News gibt, die noch nicht gelesen wurden.
Schimpft sich "Informant" (GitHub - bradford-smith94/informant: An Arch Linux News reader and pacman hook)
-
Man lese dazu (zu informantAUR) auch die offenen Issues und den offenen Pull Request und deren Datumsangaben auf der o.g. Github-Seite sowie die Blog-Einträge im AUR: https://aur.archlinux.org/packages/informant
-
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!