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

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



On Saturday 01 September 2007 01:44, Florian Kulzer wrote:
> 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.
>

Thanks!  I guess I was a bit naive about what would happen 
using --with-reccomends on everything.  I will still use it when installing 
new packages because in the past I have run across the problem of installing 
something and painstakingly having to search for the correct packages to make 
some functionality work.  That doesn't seem to be such a problem anymore, 
either becuase debian has gotten better or I have gottem more experienced.

Also thanks to Mumia for his script, which works nicely.

Chris

-- 
C. Hurschler



Reply to: