[NBLUG/talk] Debian and Apt question

troy fryman at sonic.net
Tue Nov 2 10:35:49 PST 2004


On Tue, Nov 02, 2004 at 09:38:17AM -0800, Kyle Rankin wrote:
> 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?
> 
> 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

That's one reason I like aptitude over vanilla apt-get:
aptitude hold <package>
aptitude unhold <package>

Other usage is similar:
aptitude update && aptitude dist-upgrade
aptitude remove <package>
aptitude download <package> #grabs the .deb, doesn't install it.

-troy





More information about the talk mailing list