[NBLUG/talk] Debian and Apt question

Kyle Rankin kyle at nblug.org
Tue Nov 2 09:38:17 PST 2004


On Tue, Nov 02, 2004 at 09:33:34AM -0800, Steve Johnson wrote:
> Is there a way to make apt-get exclude a package when doing an update?
>  I ended up compiling an app by hand, and when I tried to remove teh
> debian installed version it removed other stuff that I wanted to keep,
> so I left it on the system.  But... now when I do an apt-get update &&
> apt-get upgrade the package is listed there as an upgrade to install,
> and its going to clobber my hand compiled version.
> 
> So I need to exclude it.  Any ideas?
> 
> -Steve
> 

Basically you need to set a hold status flag for apt. To do this:

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

To remove the hold:
   echo <package name> install | dpkg --set-selections

-- 
Kyle Rankin
NBLUG President
The North Bay Linux Users Group
http://nblug.org
IRC: greenfly at irc.freenode.net #nblug 
kyle at nblug.org




More information about the talk mailing list