Make snapper more verbose

Hello! I’m exploring snapper and I’m greeted with this list:

snapper list
Failed to set locale. Fix your system.
  # | Type   | Pre # | Date                     | User |  Used Space | Cleanup | Description            | Userdata     
----+--------+-------+--------------------------+------+-------------+---------+------------------------+--------------
 0  | single |       |                          | root |             |         | current                |              
 1- | single |       | Thu Aug 29 14:29:15 2024 | root |   44.51 MiB | number  | first root filesystem  |              
 2  | single |       | Thu Aug 29 15:14:01 2024 | root |   18.62 MiB | number  | after installation     | important=yes
 3  | pre    |       | Thu Aug 29 15:27:23 2024 | root |    2.86 MiB | number  | zypp(zypper)           | important=no 
 4  | post   |     3 | Thu Aug 29 15:28:10 2024 | root |    5.68 MiB | number  |                        | important=no 
 5  | pre    |       | Thu Aug 29 15:39:20 2024 | root |  128.00 KiB | number  | zypp(zypper)           | important=no 
 6  | post   |     5 | Thu Aug 29 15:39:57 2024 | root |  504.00 KiB | number  |                        | important=no 
 7  | pre    |       | Thu Aug 29 15:41:54 2024 | root |  160.00 KiB | number  | zypp(zypper)           | important=no 
 8  | post   |     7 | Thu Aug 29 15:42:17 2024 | root |  112.00 KiB | number  |                        | important=no 
 9  | pre    |       | Thu Aug 29 16:46:46 2024 | root |  224.00 KiB | number  | zypp(zypper)           | important=no 
10  | post   |     9 | Thu Aug 29 16:47:27 2024 | root |    1.52 MiB | number  |                        | important=no 

Is there a way to make snapper more verbose on descriptions? When I need to roll back from a set of programs I’ve installed, I just see “zypper” as description.

I’m guessing I could manually add descriptions, but that wouldn’t be very useful in my case. Is there a way to see what change could snapper revert? Like “installed X program” “removed X config”, etc.

Thanks in advance.

Go to this section in the documentation and explore it’s potential for your requested info (Procedure 3.1, with screenshots):

snapper diff

No. The former is theoretically possible[*], the latter … define “config”. Even if this information were available, it most certainly does not fit into this list format.

[*] Something like

10:~ # diff -up <(rpm -qa --root /.snapshots/967/snapshot/ | sort) <(rpm -qa --root /.snapshots/968/snapshot/ | sort)
--- /dev/fd/63	2024-08-30 20:23:16.312632758 +0300
+++ /dev/fd/62	2024-08-30 20:23:16.312632758 +0300
@@ -497,13 +497,10 @@ kbd-2.4.0-150400.5.6.1.x86_64
 kbd-legacy-2.4.0-150400.5.6.1.noarch
 kernel-default-6.4.0-150600.23.14.2.x86_64
 kernel-default-6.4.0-150600.23.17.1.x86_64
-kernel-default-6.4.0-150600.23.7.3.x86_64
 kernel-default-extra-6.4.0-150600.23.14.2.x86_64
 kernel-default-extra-6.4.0-150600.23.17.1.x86_64
-kernel-default-extra-6.4.0-150600.23.7.3.x86_64
 kernel-default-optional-6.4.0-150600.23.14.2.x86_64
 kernel-default-optional-6.4.0-150600.23.17.1.x86_64
-kernel-default-optional-6.4.0-150600.23.7.3.x86_64
 kernel-install-tools-0.3.0-150400.1.4.x86_64
 kernel-macros-6.4.0-150600.23.17.1.noarch
 kexec-tools-2.0.27-150600.3.2.x86_64
10:~ # 
1 Like

Thank you! This is exactly what I was looking for! Thanks again for your help!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.