On Mon, 14 Oct 2019 at 05:04, John Covici <cov...@ccs.covici.com> wrote:
>
> Hi.  After a long time, I got my system into a state where I could
> finally try to do emerge depclean.  What a mess!  It would have
> deleted source for my running kernel, version of postgresql I am using
> and many other things I am currently using.    Some of them, at least
> are in my world file. Some things are not and should be and I can fix
> those, but there are a lot of libraries as well and I want to make
> sure my system is not completely hosed before I run this again -- next
> time after an update.
>
> So, how can I protect myself against depclean going wild?

If you use an older slot of the kernel or postgres, you need to put
them in world to stop them from being depcleaned. I don't know how
postgres upgrades work in gentoo, but deleting the kernel sources are
usually no big deal unless you plan to re-compile that particular
version. Just make sure you have your config in /boot or something.

I would assume that after adding any other programs you use to world,
any libraries it wants to remove are actually not in use.

Regards,
Arve

Reply via email to