[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: aptitude full-upgrade - why does it not install Recommended packages?



On Fri, Aug 31, 2007 at 20:24:43 +0200, Chris wrote:
> On Friday 31 August 2007 18:42, Sven Joachim wrote:
> > Hello,
> >
> > Chris writes:
> > > sudo aptitude full-upgrade --with-recommends
> > >
> > > can anyone tell me why it still reports (for example):
> > >
> > > The following packages are RECOMMENDED but will NOT be installed:
> > >   libjaxp1.3-java-gcj libxalan2-java-gcj
> >
> > The aptitude manual says:
> >
> >  -r, --with-recommends
> >     Treat recommendations as dependencies when installing new packages
> >
> > Note the *new* here.  Recommendations for existing packages are _not_
> > automatically installed, since aptitude presumes that you do not want
> > that; after all you did not install the recommended packages in
> > previous installs of your package.
> >
> > Of course this can be a problem since the recommendations may change
> > over time.  This is probably what happened here.
> >
> > Regards,
> > Sven
> 
> That at least explains the behavior, and makes sense I guess.  But I'd 
> actually like it to really install all "recommends", for all packages I have 
> installed.

In principle you could run

aptitude install '!~i~Rrecommends:~i'

to do this. I am not sure, however, how well "OR" recommendations and
recommendations of virtual packages will be handled.

It is probably safer to start aptitude in interactive mode and use "l"
to limit the display to packages matching the same pattern:

!~i~Rrecommends:~i

Then you can press "+" for each of these packages and use undo
immediately for cases in which the installation would have unwanted side
effects.

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |



Reply to: