Re: custom package error: dpkg -P tries to remove /opt
Mike Fogel <firstname.lastname@example.org> writes:
> Thanks for your help all, I think I'll work around the warning by
> creating a "core-custom" package, which will hold the /opt, and be
> required by all the other custom packages. I can also use that
> package as a meta-package to install all the regular packages we
> like. Not like the warning is a big deal, but the cleaner the better.
If it is a meta package depending on all others then it has to be
removed before any of the others and if you want to remove any one of
the other packages. So it will never be the last package holding /opt
and have no effect on that.
Why not just ignore the error? You will always get it when the last
/opt using package gets removed and only then.