[SLL] apt-get

Bill Thompson Billt at mahagonny.com
Thu Aug 10 11:10:32 PDT 2006


On Wed, 09 Aug 2006 20:43:55 -0700
Chris Fischer <chris at protek.cc> wrote:

> Thanks Mark & Brian for the tip!
> 
> apt-get install packagename does indeed work...Big Gripe: I've got
> 150+ packages I need to install except for one that I don't want
> installed. What a pain. There really ought to be something like an
> exception list where one can put packages to never upgrade/install.
> Or even something like: apt-get dist-upgrade --except package1
> package2 or some such.
> 
> Thanks again.
> 
> Chris

I would suggest not using apt-pinning unless you are intimately familiar
with Debian releases. IMHO it's very easy to bork your system with
pinning.

I would suggest looking at the "aptitude" utility as opposed to
apt-get. Aptitude has a "hold" function on the command line that you
can use to do exactly what you are asking for. If you do the following:

# aptitude hold slapd
# aptitude update
# aptitude upgrade

You should see that the upgradeable packages will be installed, but
slapd and it's dependencies will be held back. Keep in mind that any
package that depends on slapd will be held back as well.

-- 
Bill Thompson
BillT at Mahagonny.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.ssc.com/pipermail/linux-list/attachments/20060810/b87aa53c/signature.pgp


More information about the linux-list mailing list