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

Re: how to force a "hold" on a missing package during an apt-get upgrade



Am 21.03.2015 um 17:36 schrieb tandread:
> dear debian users,
> 
> I really need to have a program compiled from source
> (that is, a src dir, not a debian source package)
> Let's say, the mysql server source distribution
> 
> I can remove the mysql-* deb packages  with
> "dpkg --purge --force-depends"
> (I know this causes dangling lib*.so dependencies,
> but they will be fixed after the mysql src
> compilation)
> 
> but a later "apt-get --ignore-missing" insists
> on fetching what mysql-* was dpkg-purged
> 
> I have tried a semi-fix of getting a
> "--get-selections", adding the purged packages
> as "hold" and doing a "--set-selections",
> but it has side effects (all mysql dependent
> packages get uninstalled in the apt-get upgrade)

A simpler way then using --get and --set selections is

apt-mark hold|unhold <package(s)>



Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: