Ok so if I was to use pinning, I have to create the file /etc/apt/preferences

With the content looking something like below:

Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 650

Package: *
Pin: release a=unstable
Pin-Priority: 600

It appears that the wildcard character is used to cover every package in that 
particular distribution. Is it possible to specify just one packages:
Such as:

Package: apache
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 650

Package: *
Pin: release a=unstable
Pin-Priority: 600

Which will only affect that individual package rather than the whole channel?

Cheers






-----Original Message-----
From: Clive Menzies [mailto:[EMAIL PROTECTED] 
Sent: 20 October 2006 13:27
To: debian-user@lists.debian.org
Subject: Re: Debian /etc/apt/sources.list

On (20/10/06 13:54), Florian Kulzer wrote:
> On Fri, Oct 20, 2006 at 12:03:04 +0100, Clive Menzies wrote:
> > On (20/10/06 10:45), Olafur Jens Sigurdsson wrote:
> > > Þann 2006-10-20, 11:21:19 (+0100) skrifaði Clive Menzies:
> > > > On (20/10/06 10:57), Andrew Small wrote:
> > > > > I use the command apt-get to keep my system up to date.  The list of
> > > > > repositories I use to get updated 
> > > > > 
> > > > > packages is kept in /etc/apt/sources.list.  I already have a 
> > > > > particular
> > > > > package installed which I do not want
> > > > > to update.
> > > > > 
> > > > > How do I get apt-get to ignore updating this package when it is 
> > > > > invoked
> > > > > on the command line?
> > > > > Is it possible to put the package name in the sources.list file etc.
> > > > > This would be really useful so that if someone
> > > > > else is managing the system they do not have to be aware that this
> > > > > package should be ignored.
> > > > 
> > > > I use aptitude which has a hold option
> > > >  aptitude hold <packages>...
> > > > 
> > > > I just checked the apt-get man page and couldn't see an equivalent but
> > > > someone else may confirm it works.  If not apt-get should respect
> > > > aptitude's 'wishes'.
> > > 
> > > Isnt this a job for "pinning"? :-)
> > 
> > I don't think so.  I believe pinning is used where you're using
> > packages from different releases.  It would be overkill for holding one
> > package.
> 
> I believe that "hold", "forbid upgrade to specific version" and "mark
> auto" are aptitude-only features. The relevant information is stored in
> /var/lib/aptitude/pkgstates and I don't think that apt-get reads this
> file.
> 
> I always had to use pinning with apt-get if a newer version of a package
> had a bug, otherwise "apt-get upgrade" would blindly install that
> version. It is indeed a pain in the neck to use pinning like that; this
> was one of the reasons for me to switch to aptitude. Of course, it could
> be that apt-get has learned a few new tricks since I last used it, but I
> have the impression that development is focused on aptitude these days.

Thanks for the clarification :)

It would seem, Andrew, your options are use aptitude or if you stick to
apt-get, pinning is the way to go.  I find aptitude pretty powerful and
you can use it at the command line in similar fashion to apt-get.

Regards

Clive

-- 
www.clivemenzies.co.uk ...
...strategies for business



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] 
  
  
CAUTION: This email message and any attachments transmitted with it contains 
information that is CONFIDENTIAL and may be privileged or otherwise protected 
from disclosure. If you are not the intended recipient please notify Aspect 
Capital Limited ("Aspect") immediately ([EMAIL PROTECTED]) and delete all 
copies of this email message and any attachments transmitted with it from your 
system. If you are not the intended recipient, any use, disclosure or copying 
of this email message and any attachments transmitted with it is strictly 
prohibited.  
  
  
This email message and any attachments transmitted with it cannot be guaranteed 
to be secure or error free as information could be intercepted, corrupted, 
lost, destroyed or incomplete. Although Aspect routinely screens for viruses, 
it makes no representation or warranty as to the absence of viruses in this 
e-mail or any attachments. 
  
  
For further information about Aspect please see our website at 
http://www.aspectcapital.com. Aspect is authorised and regulated by the 
Financial Services Authority for investment business. 
  

Reply via email to