Removing Snapper

Continuing the discussion from Snapper removal:

[quote="SGS, post:4, topic:25771, full:true"]
Read about -Rdd

sudo pacman -Rdd snapper snapper-support snapper-tools snap-pac

SGS I just attempted this and it errors out.

It helps a lot to post exactly what the error is. :slightly_smiling_face:


Fair enough. I tried removing snapper snapper-support snapper-tools and it only removed snapper and left the other two. I now get the below when trying to just remove snapper-support snapper-tools snap-pac cause it won't reinstall snapper so I can try to remove all 4 at the same time. I'm assuming there is a hook into garuda-system-maintenance that either needs to be disabled or removed.

╭─[email protected] in ~ took 1ms
╰─λ sudo pacman -Rdd snapper-support snapper-tools snap-pac
[sudo] password for locutus:

Packages (3) snap-pac-3.0.1-2  snapper-support-1.1.2-2  snapper-tools-1.1.3-1

Total Removed Size:  0.25 MiB

:: Do you want to remove these packages? [Y/n] y
:: Running pre-transaction hooks...
(1/2) Performing snapper pre snapshots for the following configurations...
Traceback (most recent call last):
File "/usr/share/libalpm/scripts/snap-pac", line 194, in <module>
for snapper_config in get_snapper_configs(args.snapper_conf_file):
File "/usr/share/libalpm/scripts/snap-pac", line 135, in get_snapper_configs
for line in conf_file.read_text().split("\n"):
File "/usr/lib/python3.10/", line 1134, in read_text
with'r', encoding=encoding, errors=errors) as f:
File "/usr/lib/python3.10/", line 1119, in open
return, mode, buffering, encoding, errors,
FileNotFoundError: [Errno 2] No such file or directory: '/etc/conf.d/snapper'
error: command failed to execute correctly
error: failed to commit transaction (failed to run transaction hooks)
1 Like

Did you try to manually delete some things and break snap-pac?

Delete the snap-pac hook and then try again. It should be in /usr/share/libalpm/hooks

It should just be the regular pacman hook that is part of snap-pac


Thanks dalto that did the trick PERFECTLY.

1 Like

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