[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to make a meta package unremovable?



"Erik Schanze (Debian)" <schanzi_@gmx.de> writes:

> I maintain a custom Debian installation on Clients without any user
> interaction during upgrade, so everything has to go automatically.

> I created a meta package to define dependencies to all packages I need
> on the clients and I'd like to make this meta package unremovable during
> dist-upgrade.

> An automatic removal by accident during
> "$ apt-get -y --force-yes dist-upgrade"
> because of missing depends or conflicts must be prevented. It`s better
> to aboard the upgrade then.

> I see this possibilities:
> * Set "Essential: Yes" in debian/control of meta package:
>   + works as expected, even "apt-get remove <metapackage>" askes for
>     additional user input that will not happen on the clients.
>   - Upgrade process hangs waiting for the user input

This should only happen if you run it interactively.  If you don't run it
interactively, then it should realize that it can't prompt and just abort.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: