Benutzer-Werkzeuge

Webseiten-Werkzeuge


tachtler:archlinux_-_needrestart

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
tachtler:archlinux_-_needrestart [2021/04/25 12:22] klaustachtler:archlinux_-_needrestart [2021/04/25 13:00] (aktuell) – [Beispielaufruf] klaus
Zeile 18: Zeile 18:
 </code> </code>
  
-===== Installation =====+===== Voraussetzungen =====
  
 +Für die nachfolgende Installation wird vorausgesetzt, 
 +  - dass eine lauffähige Version von [[https://www.archlinux.de/|ArchLinux]] vorhanden ist
 +  - Das [[https://aur.archlinux.org/?setlang=de|ArchLinux User-Community Repository (AUR)]] bereits eingebunden ist
 +Eine der unter nachfolgenden Links beschriebenen Installationen von [[https://www.archlinux.de/|ArchLinux]] wird hier als Mindestvoraussetzung angenommen:
 +  * [[tachtler:archlinux_-_minimal_server_installation|ArchLinux - Minimal Server Installation]]
 +Die unter nachfolgendem Link beschriebene Installation von [[https://aur.archlinux.org/?setlang=de|ArchLinux User-Community Repository (AUR)]] wir hier ebenfalls vorausgesetzt:
 +  * [[tachtler:archlinux_-_arch_user_repository|ArchLinux - Arch User Repository]]
  
 +===== Installation =====
  
 Mit nachfolgendem Befehl, werden die benötigten Pakete installiert: Mit nachfolgendem Befehl, werden die benötigten Pakete installiert:
 <code> <code>
 # pikaur --noconfirm -S needrestart # pikaur --noconfirm -S needrestart
 +Reading repository package databases...
 +Reading local package database...
 +Resolving AUR dependencies...
 +looking for conflicting AUR packages...
 +Not showing diff for needrestart package (--noconfirm)
 +:: Skipping review of PKGBUILD for needrestart package (--noconfirm)
  
 +Reading local package database...
 +:: Installing repository dependencies for needrestart:
 +resolving dependencies...
 +looking for conflicting packages...
 +
 +Package (6)                       New Version  Net Change  Download Size
 +
 +extra/perl-libintl-perl           1.32-1         4.00 MiB               
 +community/perl-module-find         0.13-6         0.01 MiB               
 +community/perl-module-scandeps    1.31-1         0.07 MiB       0.03 MiB
 +community/perl-proc-processtable  0.59-2         0.06 MiB               
 +community/perl-sort-naturally     1.03-6         0.03 MiB               
 +extra/perl-term-readkey           2.38-5         0.04 MiB               
 +
 +Total Download Size:   0.03 MiB
 +Total Installed Size:  4.21 MiB
 +
 +:: Proceed with installation? [Y/n] 
 +Y
 +:: Retrieving packages...
 + perl-module-scan...    29.1 KiB  2.84 MiB/s 00:00 [######################] 100%
 +(6/6) checking keys in keyring                     [######################] 100%
 +(6/6) checking package integrity                   [######################] 100%
 +(6/6) loading package files                         [######################] 100%
 +(6/6) checking for file conflicts                    [######################] 100%
 +(6/6) checking available disk space                [######################] 100%
 +:: Running pre-transaction hooks...
 +(1/1) Performing snapper pre snapshots for the following configurations...
 +==> root: 23
 +:: Processing package changes...
 +(1/6) installing perl-proc-processtable            [######################] 100%
 +(2/6) installing perl-term-readkey                 [######################] 100%
 +(3/6) installing perl-sort-naturally               [######################] 100%
 +(4/6) installing perl-libintl-perl                 [######################] 100%
 +(5/6) installing perl-module-find                   [######################] 100%
 +(6/6) installing perl-module-scandeps              [######################] 100%
 +:: Running post-transaction hooks...
 +(1/3) Arming ConditionNeedsUpdate...
 +(2/3) Warn about old perl modules
 +(3/3) Performing snapper post snapshots for the following configurations...
 +==> root: 24
 +Reading local package database...
 +
 +:: Starting the build:
 +...
 +...
 +...
 +:: Processing package changes...
 +(1/7) installing perl-module-find                   [######################] 100%
 +(2/7) installing perl-term-readkey                 [######################] 100%
 +(3/7) installing perl-proc-processtable            [######################] 100%
 +(4/7) installing perl-sort-naturally               [######################] 100%
 +(5/7) installing perl-module-scandeps              [######################] 100%
 +(6/7) installing perl-libintl-perl                 [######################] 100%
 +(7/7) installing needrestart                       [######################] 100%
 +Optional dependencies for needrestart
 +    iucode-tool: for outdated microcode detection
 </code> </code>
  
Zeile 33: Zeile 104:
 <code> <code>
 # pikaur -Qil needrestart # pikaur -Qil needrestart
 +Name            : needrestart
 +Version         : 3.5-2
 +Description     : Restart daemons after library updates.
 +Architecture    : any
 +URL             : https://github.com/liske/needrestart
 +Licenses        : GPL
 +Groups          : None
 +Provides        : None
 +Depends On      : perl-module-find  perl-term-readkey  perl-proc-processtable
 +                  perl-sort-naturally  perl-module-scandeps  perl-libintl-perl
 +Optional Deps   : iucode-tool: for outdated microcode detection
 +Required By     : None
 +Optional For    : None
 +Conflicts With  : None
 +Replaces        : None
 +Installed Size  : 168.31 KiB
 +Packager        : Unknown Packager
 +Build Date      : Sun 25 Apr 2021 12:30:21 PM CEST
 +Install Date    : Sun 25 Apr 2021 12:30:25 PM CEST
 +Install Reason  : Explicitly installed
 +Install Script  : No
 +Validated By    : None
  
 +needrestart /etc/
 +needrestart /etc/needrestart/
 +needrestart /etc/needrestart/conf.d/
 +needrestart /etc/needrestart/conf.d/README.needrestart
 +needrestart /etc/needrestart/hook.d/
 +needrestart /etc/needrestart/hook.d/10-dpkg
 +needrestart /etc/needrestart/hook.d/20-rpm
 +needrestart /etc/needrestart/hook.d/30-pacman
 +needrestart /etc/needrestart/hook.d/90-none
 +needrestart /etc/needrestart/iucode.sh
 +needrestart /etc/needrestart/needrestart.conf
 +needrestart /etc/needrestart/notify.conf
 +needrestart /etc/needrestart/notify.d/
 +needrestart /etc/needrestart/notify.d/200-write
 +needrestart /etc/needrestart/notify.d/400-notify-send
 +needrestart /etc/needrestart/notify.d/600-mail
 +needrestart /etc/needrestart/notify.d/README.needrestart
 +needrestart /etc/needrestart/restart.d/
 +needrestart /etc/needrestart/restart.d/README.needrestart
 +needrestart /etc/needrestart/restart.d/dbus.service
 +needrestart /etc/needrestart/restart.d/systemd-manager
 +needrestart /etc/needrestart/restart.d/sysv-init
 +needrestart /usr/
 +needrestart /usr/bin/
 +needrestart /usr/bin/needrestart
 +needrestart /usr/lib/
 +needrestart /usr/lib/needrestart/
 +needrestart /usr/lib/needrestart/iucode-scan-versions
 +needrestart /usr/lib/needrestart/notify.d.sh
 +needrestart /usr/lib/needrestart/vmlinuz-get-version
 +needrestart /usr/lib/perl5/
 +needrestart /usr/lib/perl5/5.32/
 +needrestart /usr/lib/perl5/5.32/core_perl/
 +needrestart /usr/lib/perl5/5.32/vendor_perl/
 +needrestart /usr/lib/perl5/5.32/vendor_perl/auto/
 +needrestart /usr/lib/perl5/5.32/vendor_perl/auto/NeedRestart/
 +needrestart /usr/share/
 +needrestart /usr/share/locale/
 +needrestart /usr/share/locale/cs/
 +needrestart /usr/share/locale/cs/LC_MESSAGES/
 +needrestart /usr/share/locale/cs/LC_MESSAGES/needrestart-notify.mo
 +needrestart /usr/share/locale/cs/LC_MESSAGES/needrestart.mo
 +needrestart /usr/share/locale/de/
 +needrestart /usr/share/locale/de/LC_MESSAGES/
 +needrestart /usr/share/locale/de/LC_MESSAGES/needrestart-notify.mo
 +needrestart /usr/share/locale/de/LC_MESSAGES/needrestart.mo
 +needrestart /usr/share/locale/ru/
 +needrestart /usr/share/locale/ru/LC_MESSAGES/
 +needrestart /usr/share/locale/ru/LC_MESSAGES/needrestart-notify.mo
 +needrestart /usr/share/locale/ru/LC_MESSAGES/needrestart.mo
 +needrestart /usr/share/perl5/
 +needrestart /usr/share/perl5/vendor_perl/
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/CONT.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/CONT/
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/CONT/LXC.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/CONT/docker.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/CONT/machined.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/Interp.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/Interp/
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/Interp/Java.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/Interp/Perl.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/Interp/Python.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/Interp/Ruby.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/Kernel.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/Kernel/
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/Kernel/Linux.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/Kernel/kFreeBSD.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/Strings.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/UI.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/UI/
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/UI/Debconf.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/UI/stdio.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/Utils.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/uCode.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/uCode/
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm
 +needrestart /usr/share/perl5/vendor_perl/NeedRestart/uCode/Intel.pm
 +needrestart /usr/share/polkit-1/
 +needrestart /usr/share/polkit-1/actions/
 +needrestart /usr/share/polkit-1/actions/net.fiasko-nw.needrestart.policy
 </code> </code>
  
 +===== Konfiguration =====
 +
 +Zur Verwendung von [[https://github.com/liske/needrestart|needrestart]] ist grundsätzlich keine Konfiguration erforderlich. 
 +
 +Die Konfigurationsdateien für etwaige Anpassungen befinden sich im Verzeichnis
 +  * ''/etc/needrestart''
 +
 +===== Beispielaufruf =====
 +
 +Nachfolgender Aufruf zeigt alle aktuellen Optionen und Parameter von [[https://github.com/liske/needrestart|needrestart]]:
 +
 +<code>
 +# needrestart --help
 +
 +needrestart 3.5 - Restart daemons after library updates.
 +
 +Authors:
 +  Thomas Liske <thomas@fiasko-nw.net>
 +
 +Copyright Holder:
 +  2013 - 2020 (C) Thomas Liske [http://fiasko-nw.net/~thomas/]
 +
 +Upstream:
 +  https://github.com/liske/needrestart
 +
 +This program is free software; you can redistribute it and/or modify
 +it under the terms of the GNU General Public License as published by
 +the Free Software Foundation; either version 2 of the License, or
 +(at your option) any later version.
 +
 +Usage:
 +
 +  needrestart [-vn] [-c <cfg>] [-r <mode>] [-f <fe>] [-u <ui>] [-bkl]
 +
 +    -v be more verbose
 +    -q be quiet
 +    -m <mode> set detail level
 + e (e)asy mode
 + a (a)dvanced mode
 +    -n set default answer to 'no'
 +    -c <cfg> config filename
 +    -r <mode> set restart mode
 + l (l)ist only
 + i (i)nteractive restart
 + a (a)utomatically restart
 +    -b enable batch mode
 +    -p          enable nagios plugin mode
 +    -f <fe> override debconf frontend (DEBIAN_FRONTEND, debconf(7))
 +    -u <ui>     use preferred UI package (-u ? shows available packages)
 +
 +  By using the following options only the specified checks are performed:
 +    -k          check for obsolete kernel
 +    -l          check for obsolete libraries
 +    -w          check for obsolete CPU microcode
 +
 +    --help      show this help
 +    --version   show version information
 +
 +</code>
 +
 +Ein möglicher Aufruf, um nur mögliche Neustart Anforderungen aufzulisten, **__ohne einen tatsächlich Neustart durchzuführen__**, kann mit nachfolgendem Befehl ausgeführt werden:
 +<code>
 +# needrestart -n -r l -k -l -w
 +Scanning processes...
 +Scanning linux images...
 +
 +Running kernel seems to be up-to-date.
 +
 +No services need to be restarted.
 +
 +No containers need to be restarted.
 +
 +No user sessions are running outdated binaries.
 +</code>
 +bzw. 
 +<code>
 +# needrestart -n -r l -k -l -w
 +Scanning processes...                                                           
 +Scanning candidates...                                                          
 +Scanning linux images...                                                        
 +
 +Running kernel seems to be up-to-date.
 +
 +Services to be restarted:
 +
 +Service restarts being deferred:
 + systemctl restart NetworkManager.service
 + systemctl restart accounts-daemon.service
 + systemctl restart avahi-daemon.service
 + systemctl restart colord.service
 + systemctl restart cups-browsed.service
 + systemctl restart cups.service
 + /etc/needrestart/restart.d/dbus.service
 + systemctl restart gdm.service
 + systemctl restart libvirtd.service
 + systemctl restart polkit.service
 + systemctl restart rtkit-daemon.service
 + systemctl restart systemd-journald.service
 + systemctl restart systemd-logind.service
 + systemctl restart systemd-machined.service
 + systemctl restart systemd-timesyncd.service
 + systemctl restart systemd-udevd.service
 + systemctl restart udisks2.service
 + systemctl restart upower.service
 + systemctl restart user@1000.service
 + systemctl restart wpa_supplicant.service
 +
 +No containers need to be restarted.
 +
 +No user sessions are running outdated binaries.
 +</code>
tachtler/archlinux_-_needrestart.1619346138.txt.gz · Zuletzt geändert: 2021/04/25 12:22 von klaus