1
Configuration avancée / Re : Suivi des installations et suppressions Zypper
Je pense que c’est plus simple. Mais cpourquoi faire simple quand on peut faire compliqué ? 😃
Entièrement d'accord avec toi.
(Sur les forums anglophones, la demande d'une extraction des logs zypper a été réclamée pas mal de fois).
mais quand on a pas d'électricité , c'est bien d'avoir une bougie pour s'éclairer..
Le but de la rubrique « Configuration avancée », c'est quand rien ne fonctionne... On fait quoi et comment ?Code: [Sélectionner]unixlinuxpro# ./zypper-history-beta_2.sh
Voulez-vous spécifier une date ? [O/n] O
📅 Entrez la date (YYYY-MM-DD) : 2025-01-28
==================================================================================
Historique Zypper (/var/log/zypp/history) - 2025-01-28
==================================================================================
Date/Heure | Action | Paquet/Commande | Version
----------------------------------------------------------------------------------
2025-01-28 20:19:59 | command | root@unixlinuxpro | 'zypper' 'dup' '--download-as-needed'
2025-01-28 20:20:14 | install | bash-doc | 5.2.37-528.2
2025-01-28 20:20:20 | install | coreutils-systemd | 9.6-409.5
2025-01-28 20:20:22 | install | dbus-broker-block-restart | 36-50.4
2025-01-28 20:20:48 | install | filesystem | 84.87-325.1
2025-01-28 20:21:44 | install | liblastlog2-2 | 2.40.4-3.4
2025-01-28 20:21:48 | install | libp11-kit0 | 0.25.5-71.13
2025-01-28 20:21:52 | install | p11-kit | 0.25.5-71.13
2025-01-28 20:21:55 | install | libproc2-1 | 4.0.5-322.5
2025-01-28 20:21:59 | install | bash | 5.2.37-528.2
2025-01-28 20:22:01 | install | bash-sh | 5.2.37-528.2
2025-01-28 20:22:05 | install | p11-kit-tools | 0.25.5-71.13
2025-01-28 20:22:07 | install | p11-kit-server | 0.25.5-71.13
2025-01-28 20:22:10 | install | procps | 4.0.5-322.5
2025-01-28 20:22:13 | install | util-linux-tty-tools | 2.40.4-3.4
2025-01-28 20:22:18 | install | util-linux-systemd | 2.40.4-3.4
2025-01-28 20:22:20 | install | sysuser-shadow | 3.3-13.1
2025-01-28 20:22:28 | install | systemd-presets-common-SUSE | 15-115.1
2025-01-28 20:22:33 | install | syslog-service | 2.0-972.29
2025-01-28 20:22:35 | install | polkit-default-privs | 1550+20250128.968956c-613.1
2025-01-28 20:22:39 | install | mdadm | 4.3-308.145
2025-01-28 20:22:42 | install | m4 | 1.4.18-74.17
2025-01-28 20:22:44 | install | lastlog2 | 2.40.4-3.4
2025-01-28 20:22:47 | install | klogd | 1.5.1-972.29
2025-01-28 20:22:52 | install | grub2-common | 2.12-47.68
2025-01-28 20:22:57 | install | grub2-i386-pc | 2.12-47.68
2025-01-28 20:23:00 | install | grub2 | 2.12-47.68
2025-01-28 20:23:04 | install | gawk | 5.3.1-118.70
2025-01-28 20:23:06 | install | fwupd-efi | 1.7-16.44
2025-01-28 20:23:08 | install | dbus-broker | 36-50.4
2025-01-28 20:23:10 | install | cron | 4.2-500.184
2025-01-28 20:23:13 | install | cronie | 1.7.2-500.184
2025-01-28 20:23:17 | install | bash-lang | 5.2.37-528.2
2025-01-28 20:23:20 | install | procps-lang | 4.0.5-322.5
2025-01-28 20:23:24 | install | rtkit | 0.13-78.3
2025-01-28 20:23:29 | install | grub2-x86_64-efi | 2.12-47.68
2025-01-28 20:23:31 | install | grub2-systemd-sleep-plugin | 2.12-47.68
2025-01-28 20:23:33 | install | grub2-snapper-plugin | 2.12-47.68
2025-01-28 20:23:38 | install | dracut | 059+suse.679.g7559201e-386.6
2025-01-28 20:23:44 | install | cpp13 | 13.3.1+git8964-118.50
2025-01-28 20:23:58 | install | libstdc++6-devel-gcc13 | 13.3.1+git8964-118.50
2025-01-28 20:24:13 | install | gcc13 | 13.3.1+git8964-118.50
2025-01-28 20:24:16 | install | gcc13-locale | 13.3.1+git8964-118.50
2025-01-28 20:24:22 | install | gcc13-c++ | 13.3.1+git8964-118.50
2025-01-28 20:24:24 | install | libatk-1_0-0 | 2.54.1-245.2
2025-01-28 20:24:27 | install | libatspi0 | 2.54.1-245.2
2025-01-28 20:24:40 | install | ghostscript | 10.04.0-220.44
2025-01-28 20:24:42 | install | ghostscript-x11 | 10.04.0-220.44
2025-01-28 20:24:44 | install | typelib-1_0-Atk-1_0 | 2.54.1-245.2
2025-01-28 20:24:47 | install | libatk-bridge-2_0-0 | 2.54.1-245.2
2025-01-28 20:24:50 | install | at-spi2-core | 2.54.1-245.2
2025-01-28 20:24:53 | install | at-spi2-core-lang | 2.54.1-245.2
2025-01-28 20:24:56 | install | libfreebl3 | 3.107-4.11
2025-01-28 20:24:58 | install | mozilla-nss-certs | 3.107-4.11
2025-01-28 20:25:01 | install | libsoftokn3 | 3.107-4.11
2025-01-28 20:25:05 | install | mozilla-nss | 3.107-4.11
2025-01-28 20:25:08 | install | mozilla-nss-sysinit | 3.107-4.11
2025-01-28 20:25:11 | install | libvlccore9 | 3.0.21-1699.9.pm.1
2025-01-28 20:25:25 | install | obs-studio | 31.0.0-1699.6.pm.12
2025-01-28 20:25:27 | install | libvlc5 | 3.0.21-1699.9.pm.1
2025-01-28 20:25:37 | install | vlc-noX | 3.0.21-1699.9.pm.1
2025-01-28 20:25:41 | install | vlc-lang | 3.0.21-1699.9.pm.1
2025-01-28 20:25:45 | install | vlc-qt | 3.0.21-1699.9.pm.1
2025-01-28 20:25:48 | install | vlc-codec-fluidsynth | 3.0.21-1699.9.pm.1
2025-01-28 20:25:52 | install | vlc-codecs | 3.0.21-1699.9.pm.1
2025-01-28 20:25:56 | install | vlc-codec-gstreamer | 3.0.21-1699.9.pm.1
2025-01-28 20:26:03 | install | vlc | 3.0.21-1699.9.pm.1
2025-01-28 20:26:08 | install | vlc-vdpau | 3.0.21-1699.9.pm.1
2025-01-28 20:26:10 | install | system-user-kodi | 22.x.+git.20250127T172131~12245d092-410.2
2025-01-28 20:28:18 | install | kernel-liquorix | 6.12.11.lqx2-1.1
2025-01-28 20:29:20 | install | microsoft-edge-beta | 133.0.3065.31-1
==================================================================================
Log d'exécution (/var/log/zypper.log) - 2025-01-28
==================================================================================
Heure | PID | Commande
----------------------------------------------------------------------------------
================================================================================
Collect from /var/log/zypper.log ...
2025-01-28 20:08 | 68258 | zypper vb
2025-01-28 20:17 | 68333 | zypper ref
2025-01-28 20:18 | 68826 | zypper dup --download-as-needed
unixlinuxpro#
script dans mon github
Yast history ne te donne pas les sorties de commandes que tu as passées.
Généralement, c'est ce qui est demandé quand on cherche à se faire dépanner.
Le script extrait à une date choisie : zypper history & zypper log :
- commande éxecutée
- paquet installé
- paquet supprimé
et de zypper.log
- Uniquement les commandes exécutées.
Et en cas de dépannage ça peut aider et y voir plus clair.
Perso, je n'utilise plus Yast depuis pas mal de temps.
* Je mets mes scripts ou autres outils de dépannage sur clé USB, en plus d'avoir passé mon PC de test en BTRFS
Dans tous les cas, si ça peut aider, c'est le but.
[1]
Pas d’inquiétude, aucun problème. Ton script a bien sa place dans la section configuration avancée.
Je ne me sers pratiquement plus de yast également.
En fait je suis sous leap donc jamais ou presque de problèmes. 😀
1 Yast va disparaître pour laisser sa place.
* Agama : nouvel installateur système
* Cockpit : pour l'administration système (je suis déjà sur Cokpit)↵
* Agama : nouvel installateur système
* Cockpit : pour l'administration système (je suis déjà sur Cokpit)↵