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

Re: protecting/preventing a package from being removed?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Garamond wrote:

> Can I prevent/protect a package from being accidentally removed? By
> 'accident' I mean answering Yes in apt-get remove prompt or just
> clicking Apply in synaptic without realizing that an important package
> is being removed. For example, I want to prevent mysql-server (which
> depends on mailx) from being removed when mailx is accidentally tried to
> be removed. So what I want is that for apt to refuse uninstalling mailx,
> because a 'protected' package (mysql-server) depends on it.
> 
> Is there something I can write in /etc/apt/preferences? I haven't found
> a way to accomplish that. Pinning and locking version in synaptic don't
> do this.
> 
> Regards,
> dave

You can put the package on hold. I'm not sure if it is the best way to
secure the package from accidentally being removed.

rrs
- -- 
Ritesh Raj Sarraf
RESEARCHUT -- http://www.researchut.com
Gnupg Key ID: 04F130BC
"Stealing logic from one person is plagiarism, stealing from many is
research."
"Necessity is the mother of invention."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCd7fR4Rhi6gTxMLwRAtHTAKChPoyxI3xRdOWGyEPce74hhbkauQCePXlV
1m+L/SyhGvoXvpqBMr6vrEc=
=+FGp
-----END PGP SIGNATURE-----



Reply to: