Solved

Debian /etc/apt/sources.list

Posted on 2006-10-19
5
1,145 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
dbacalja earned 63 total points
ID: 17775316
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
ID: 17780551
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
ID: 17780557
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

739 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