on gentoo for example I have accrued a few files under /etc/portage that to my knowledge just have to live there…

right now I basically rely on my backups for this. but maybe somebody knows a clever way to handle this?