r/voidlinux • u/GlbbFrnd • Feb 17 '26
Is there any xbps undo script/tool?
Hey!
Is there any tool or script that is still maintained for undoing installations with xbps? Or how do you usually handle a situation like that?
I know I can check the logs, but the formatting isn’t very helpful for this use case.
I’m asking because I’m thinking about trying out KDE, but I’d like to be able to remove it completely if I don’t like it.
Thanks in advance!
EDIT: I am asking specificly for something like dnf history undo if I sequently install packages and want to undo without searching them in the xbps logs. I found a tool for that years ago. But cant find it anymore. Im just not sure if xbps can catch up all dependencies with a bigger set of installations (xbps-remove -o). If you can obliterate my last point, I would also be glad.
7
u/OptimalMain Feb 17 '26
xbps-remove -R KDE-whatever?3
u/Danrobi1 Feb 17 '26
declaro - a simple declarative wrapper for any linux distro
2
u/BeyondOk1548 Feb 17 '26
This would be a very neat script to make.
2
u/d3jv Feb 17 '26
I guess you could just copy the packages you installed and save the list somewhere. It's not like you're gonna be trying that many DEs anyway.
2
u/Initial_Side_4845 Feb 18 '26
Why not just use timeshift ?
You _should_ be using that (or similar) anyway, ;-)
1
u/6950X_Titan_X_Pascal Feb 17 '26 edited Feb 17 '26
use B TREE FS snapshots or zfs for rolling back to a specific time point
2
u/Blank-Inspection13 Feb 18 '26
for convenience , try installing
xtoolsxilogis easy enough to understand the log when and which pkg installedxpkg -mwill explicitly list your installed pkgxlswill list all files installed on the system per pkg.There are more you can utilize to make your own script to undo .
1
u/notionen Feb 18 '26
A backup GUI like: Timeshift, Pika.
CLI tools: rsync, borgbackup, restic
https://github.com/restic/restic