FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 12-12-2007, 05:44 PM
Nigel Henry
 
Default How to stop a pkg being updated to the latest with Apt

Apologies, as this question applies directly to my Fedora installs, where I've
always used Apt. I also run Debian Sarge.Etch. and Lenny.

I don't expect any replies from the Fedora list, as Yum is the default package
manager.

Anyway. This is the problem. I've had problems with ZynAddSubFX, and fltk.
I've replaced the Fedora 8 version of fltk with the FC5 version of fltk, and
now ZynAddSubFX is now working ok. Now though, if I run apt-get update, and
apt-get dist-upgrade, fltk is going to be upgraded to the F8 version which
doesn't work.

How do I prevent the fltk package being upgraded using Apt?

Apologies for asking a Fedora question on the list, but I do like Apt, and you
guys/gals are the ones to ask.

Many thanks for all replies.

Nigel.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-12-2007, 06:23 PM
Peter Werner
 
Default How to stop a pkg being updated to the latest with Apt

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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-15-2007, 07:46 PM
Nigel Henry
 
Default How to stop a pkg being updated to the latest with Apt

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).

I also posted this question to apt-rpm@lists.laiskiainen.org. Someone there
suggested pinning, and having tried various incantations
in /etc/apt/preferences, this one appears to work.

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

The fltk version 1.1.7* is referring to fltk-1.1.7-1.fc5, which is the
installed version of fltk, and installed using rpm -Uvh <path to fltk
package>. I replaced the fltk-1.1.8-0.3.r5750.fc7 version with the fc5
version, as the fc7 version creates problems with ZynnAddSubFX.

Ignore the rpm stuff as it refers to Fedora, but apart from that the pinning
appears to be working ok.

I ran an apt-get update, and no warning about pinning problems. Followed that
with an apt-get dist-upgrade -s, and got no packages to be upgraded, which
confirmed that the pinning was working. Opened Synaptic, and installed
version of fltk was showing as 1.1.7-1.fc5, and available version of fltk is
also showing as 1.1.7-1.fc5, which again showed that the pinning was working.

Thanks again for your help with an Apt problem on Fedora, and btw, I still
havn't had a reply to this problem I sent to the Fedora list. They're
probably too occupied with Yum problems, or just didn't have an answer.

Nigel.




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-15-2007, 08:28 PM
Daniel Burrows
 
Default How to stop a pkg being updated to the latest with Apt

On Sat, Dec 15, 2007 at 09:46:58PM +0100, Nigel Henry <cave.dnb@tiscali.fr> 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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-15-2007, 10:40 PM
Nigel Henry
 
Default 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@tiscali.fr>
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@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 08:56 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org