Re: Dont install suggested and recommended packages with apt-get?
On Feb 20 19:32, Osamu Aoki wrote:
> On Wed, Feb 20, 2002 at 05:31:42PM +0000, John Ericson wrote:
> > When Im doing an 'apt-get install reportbug' it wants to install packages
> > that is using 'Recommends' and 'Suggests' depending, but I want it to only
> > install packages that it absolutly needs (Such as with the 'Depends'
> > depending). How can I do this with the apt-get command-line tool?
> >
> > Excerpt from 'apt-cache show reportbug':
> > Depends: python
> > Recommends: python-newt
> > Suggests: postfix | mail-transport-agent, gnupg | pgp, python-ldap (>= 1.8-1)
>
> You can theoretically use "echo ..." and "apt-get --set-selections"
>
You mean dpkg --set-selections right? I tried to set exim libdb3 and pgp to
hold. Only exim worked because the two other doesnt exist in stable. On
those I got a "libdb3 doesn't exist." message.
When Im doing an "apt-get install reportbug/testing" I get this:
Selected version 1.42 (Debian:testing) for reportbug
The following extra packages will be installed:
exim libdb3 pgp python-base reportbug
The following NEW packages will be installed:
exim libdb3 pgp python-base reportbug
The following held packages will be changed:
exim
0 packages upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 2071kB of archives. After unpacking 5619kB will be used.
It just overrides my hold settings =(
> But set-selection action is easier with using "dselect"
>
> # dselect update
> # dselect select
>
> then
>
> # apt-get dselect-upgrade
> or
> # dselect install
>
I tried with aptitude which is a similar program but it belive that
these programs doesnt have support for running with such a multi-distro
setup (stable and testing) that Im using. They all only lists stable
packages.
Im looking for something such as a apt option which I can give with -o=...
or insert in my /etc/apt/apt.conf. Else Ill have to install packages
manualy with dpkg =(
--
* John Ericson john@john.pp.se
* ICQ: 7325429 JID: high@jabber.org
* web: http://john.pp.se
Reply to: