LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-27-2005, 10:51 PM   #1
raid517
Member
 
Registered: Feb 2002
Posts: 393

Rep: Reputation: 30
How to prevent a package from being removed?


Hi, how do I prevent a package from being removed? I have installed a single package from an unnoficial repository, but every time I do an apt-get dist-upgrade (or apt-get anything for that matter) it gets removed. How do I stop this? How can I tell apt-get and dpkg to ignore it?

GJ
 
Old 04-27-2005, 11:20 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: How to prevent a package from being removed?

Quote:
Originally posted by raid517
Hi, how do I prevent a package from being removed? I have installed a single package from an unnoficial repository, but every time I do an apt-get dist-upgrade (or apt-get anything for that matter) it gets removed. How do I stop this? How can I tell apt-get and dpkg to ignore it?

GJ
Put the package on hold.

Code:
echo "package_name hold" ¦ dpkg --set-selections package_name
Of course changing package_name to the name of the package you want to hold this done as root making sure that you do a dselect update to get the dpkg and apt databases in sync again.
 
Old 04-29-2005, 02:12 PM   #3
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
Happytux, I didn't know about putting a package on hold. Can't you also do it in preferences by setting a pin priority >1000? For example, I use a specific version of wine. In /etc/apt/preferences I have, for example:
Quote:
Package: libwine
Pin: version 0.0.20040615-1
Pin-Priority: 1001
To prevent libwine from being upgraded from version 0.0.20040615-1.
 
Old 04-29-2005, 10:09 PM   #4
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
I thought putting a pakage on hold prevents it from getting installed...not holding it from being removed.
*heads to man*
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 07:05 PM
How to prevent the UDP package from being thrown away? fionafhx Linux - Networking 0 12-24-2004 01:49 PM
removed the wrong package phek Linux - General 2 10-20-2004 04:40 AM
HELP! removed aaa_base package!! Kanou Slackware 10 11-28-2003 09:20 AM
installing an unstable package from debian's online package archive ganninu Debian 13 11-07-2003 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration