apt-get and hold/ignore

Panu Matilainen pmatilai at welho.com
Thu Jun 24 08:09:14 UTC 2004


On Wed, 23 Jun 2004, Frank Pineau wrote:

> Ok, I'm stumped.  In debian, you could put a hold on a package with dpkg
> --set-selections.  In the FC world, I can't for the life of me figure
> out how to do that with either apt-get or synaptic.  It's very annoying
> because I have several packages installed that are newer than what's in
> the repositories (xscreensaver, for example) and apt-get insists it's
> older and wants to upgrade it.

That's case of missing epoch's in your local newer packages, fix that and 
the problem is gone.

> 
> Can anyone tell me how to get apt-get/synaptic to ignore a package in
> FC2?

You can put a packages "on hold" in apt-rpm with this in apt.conf:
RPM::Hold:: {"pkg1"; "pkg2";};

The other, more complex way is to use pinning, for the gory details see 
"man apt_preferences"

	- Panu -





More information about the fedora-list mailing list