Solved

Debian /etc/apt/sources.list

Posted on 2006-10-19
5
1,118 Views
Last Modified: 2013-12-16
Hi

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.

Thanks in Advance
0
Comment
Question by:sma3092
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
dbacalja earned 63 total points
Comment Utility
Hi,
packages put on 'hold' are not automatically upgraded. To put a package on hold run:

echo "<package> hold" | dpkg --set-selections

See apt and dpkg quick reference for more info --> http://xanana.ucsc.edu/linux/apt-dpkg-ref.html
0
 
LVL 5

Assisted Solution

by:kyle_in_taiwan
kyle_in_taiwan earned 62 total points
Comment Utility
Unless you're using a system that's so old you can't use it, i'd really urge you to switch to using aptitude.

From the aptitude screen, you'd simply need to highlight the package in question and press "=".  You'll see a lowercase "h" appear next to the entry, and from then on the package won't be updated until you alter the selection.
0
 
LVL 5

Expert Comment

by:kyle_in_taiwan
Comment Utility
Also, by working that way none of the necessary package dependencies upon which the package is dependent will be altered without you first authorizing the resolution method.  I don't think apt by itself is able to work out the dependencies as cleanly as aptitude, and certainly the display and notification methods it uses are much less transparent.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now