How do you containerize stuff you install from source in a way that you can completely remove later?

https://lemmy.world/post/2722803

How do you containerize stuff you install from source in a way that you can completely remove later? - Lemmy.world

I’m doing a bunch of AI stuff that needs compiling to try various unrelated apps. I’m making a mess of config files and extras. I’ve been using distrobox and conda. How could I do this better? Chroot? Different user logins for extra home directories? Groups? Most of the packages need access to CUDA and localhost. I would like to keep them out of my main home directory.

There’s a method using systemd-sysext that would work well for this on any distro without dealing with poking holes in containers. One of the gnome folks blogged about it recently here: https://blogs.gnome.org/alatiera/2023/08/04/developing-gnome-os-systemd-sysext/
Developing in GNOME OS: systemd-sysext

This is the first post in a series about tools used to develop GNOME and GNOME OS. Part two coming soon. In the old age, developing the desktop was simple™️. You only had to install a handful of toolchains, development headers, and tools from the distribution packages, run make install, execute say_prayer.sh and if you...

Rust in Peace