Re: How to stop a pkg being updated to the latest with Apt



On Saturday 15 December 2007 22:28, Daniel Burrows wrote:
On Sat, Dec 15, 2007 at 09:46:58PM +0100, Nigel Henry <cave.dnb@xxxxxxxxxx>
was heard to say:
On Wednesday 12 December 2007 20:23, Peter Werner wrote:
On Wed, Dec 12, 2007 at 07:44:39PM +0100, Nigel Henry wrote:
How do I prevent the fltk package being upgraded using Apt?

put the package on hold. see 6.12 in
http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html
on how to do this.

greetings Peter Werner

Thanks Peter for your reply, and the link. Unfortunately it only deals
with Aptitude, and Dpkg, and there appears to be no way to put a hold on
an individual package with Apt ( at least not on the Apt version on
Fedora).

Apt and aptitude will read dpkg hold states.

Daniel

Hi Daniel. I'm sure that's true with Apt, or Aptitude on Debian, but doesn't
work with Apt on Fedora. I havn't had to hold back packages on my Debian
installs, and this is a specific problem with a version of fltk that comes
with Fedora 7, and 8, and causes problems with ZynAddSubFX. Using the fltk
version from FC5 resolves the problem.

I've already posted this to the list, but these are the lines added
to /etc/apt/preferences that have resolved the pinning problem.

Package: fltk
Pin: version 1.1.7*
Pin-Priority: 1001

According to this no fltk versions later than 1.1.7* will be installed if
later versions are available. In my case the 1.1.8* versions are causing the
problem. Running apt-get dist-upgrade -s verifies that fltk is not going to
be upgraded, so the pinning is working thank goodness, as this has been a bit
of a performance trying to find the correct lines to enter
in /etc/apt/preferences.

Thanks to all who replied, even though this wasn't a Debian problem, although
Apt is Debian, and I just happen to like using it on Fedora.

Nigel.

Currently running Debian Sarge, Etch, and Lenny, Kubuntu (Dapper), Archlinux,
Fedora 1,2,3,5,6,7, and 8, Slackware 10.0, and Gentoo.

btw. I still havn't received a reply for the problem from the Fedora list.
they're probably too occupied with Yum to be bothered with Apt.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Debian
    ... Both apt and dpkg are package tools, as are aptitude, synaptic, ... Which is ultimately why Ubuntu, and via Ubuntu, Debian, is basically ... There have been lots of efforts to "improve" Debian before now, ...
    (Ubuntu)
  • Re: Installing new software packages in Debian
    ... > I want to try installing Debian but I don't understand how to install ... but now I want to switch to Debian because I ... use apt that much, but it is a pretty slick program. ... apt-sortpkgs - Utility to sort package index files ...
    (comp.os.linux.misc)
  • Re: RH Veteran is now a Debian Newbie
    ... have to manually track down, and rebuild, package depedencies. ... | So I thought I'd try debian as it seems a little more consistent. ... Using apt ... Note that dpkg is the counterpart to rpm. ...
    (Debian-User)
  • Re: Installation of further packages
    ... Unfortunately I have no Linux background and I am not able to install ... In Debian, you generally do not compile all the packages yourself ... Debian has a very good package management ... system which is built on two important programs: dpkg and apt. ...
    (Debian-User)
  • APT -- if I do this will I screw the pooch?
    ... I typically use aptitude in command-line mode as a front-end to APT. ... I was thinking of setting up the notebook by doing a basic install off my old woody CDs I originally set up my desktop off of, getting a working net connection in place, then immediately upgrading everything via the net to current stable before building out the system any further. ... I don't want the notebook to have to download them all again, especially since security.debian.org, which has a lot of the latest versions of stable packages, seems to get overloaded and be very slow to download at times. ... This is because although I want them both to use the same repository of downloaded package files, I want the two machines to independently track what's installed, so I don't have to keep installed packages identical on both machines. ...
    (Debian-User)