When I work on a project I often need to install a bunch of packages and libraries/tools.
Often these packages create logs files and other kind of useless files that I will not need when the project will be done. With time my OS becomes messy and "dirty" .
Sometimes I just want to try a new desktop environment and I don't want to waste my configuration.
Is there a way to save the state of my machine (installed packages, configuration and some specified folders) ?
Exactly like git (you can create a branch and go back to an older commit) But for my OS.
Of course I could make backup or snapshot of my system. But it's heavy and it take a while to restore. For example, I don't need to physically save packages, I just need the version number to download them again (I apologize for the debian packages server).
Do you know a tool able to do that ?
PS : I mostly use Debian and Arch Linux.