LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How to aptitude update "RECOMMENDS" (https://www.linuxquestions.org/questions/debian-26/how-to-aptitude-update-recommends-4175434830/)

aquaboot 10-30-2012 08:42 PM

How to aptitude update "RECOMMENDS"
 
Hi All,

I often encounter something like this:

root@polaris:~# aptitude safe-upgrade
The following packages will be upgraded:
iceweasel libmikmod2 libmozjs10d libproxy0 popularity-contest ruby-gettext ruby-locale xserver-xorg-input-wacom xulrunner-10.0
The following packages are RECOMMENDED but will NOT be installed:
oss-compat pulseaudio-esound-compat
9 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.8 MB of archives. After unpacking 8,192 B will be used.
Do you want to continue? [Y/n/?]


How do I use command line to install the RECOMMENDED packages as well as the regulars at the same time. I'm trying to save myself from installing the recommendeds then going back and installing the others via safe-upgrade.

Thanks,

ab

Rodebian 10-30-2012 09:15 PM

What I do is cancel the install, type n. Hit your arrow up button to bring up the last thing you typed in the terminal. Then highlight and copy the recommended packages, all or only the ones you want, and paste it to your line. Hit enter and install.

BTW. Recommended is not necessarily the same as needed.

aquaboot 10-30-2012 10:39 PM

Thanks for the reply.

-ab

craigevil 10-30-2012 11:26 PM

Personally I disable Recommends by editing apt.conf and adding:

Code:

// Recommends are as of now still abused in many packages
APT::Install-Recommends "0";
APT::Install-Suggests "0";
Debug::pkgAutoRemove "0";

Most of the time the packages are not necessarily needed, but they do usually add something.

jim_p 10-31-2012 12:59 AM

The parameter "--install-recommends" will install your package along with its recommended dependencies, overriding the above configuration.

Code:

$ sudo apt-get install nautilus
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following extra packages will be installed:
  gnome-desktop3-data libexempi3 libgnome-desktop-3-2 libtracker-sparql-0.14-0 libunistring0
Suggested packages:
  eog totem mp3-decoder xdg-user-dirs tracker
Recommended packages:
  hwdata brasero gnome-sushi
The following NEW packages will be installed:
  gnome-desktop3-data libexempi3 libgnome-desktop-3-2 libtracker-sparql-0.14-0 libunistring0 nautilus
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,218 kB of archives.
After this operation, 10.0 MB of additional disk space will be used.
Do you want to continue [Y/n]?

while

Code:

$ sudo apt-get install nautilus --install-recommends
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following extra packages will be installed:
  brasero brasero-common gir1.2-atk-1.0 gir1.2-clutter-1.0
  gir1.2-clutter-gst-1.0 gir1.2-cogl-1.0 gir1.2-coglpango-1.0
  gir1.2-evince-3.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0
  gir1.2-gst-plugins-base-0.10 gir1.2-gstreamer-0.10 gir1.2-gtk-3.0
  gir1.2-gtkclutter-1.0 gir1.2-gtksource-3.0 gir1.2-json-1.0 gir1.2-pango-1.0
  gnome-desktop3-data gnome-sushi gnome-user-guide gstreamer0.10-plugins-ugly
  hwdata libbrasero-media3-1 libclutter-1.0-0 libclutter-1.0-common
  libclutter-gst-1.0-0 libclutter-gtk-1.0-0 libcogl-common libcogl-pango0
  libcogl9 libdjvulibre-text libdjvulibre21 libevdocument3-4 libevview3-3
  libexempi3 libgjs0b libgmime-2.6-0 libgnome-desktop-3-2 libgpgme11
  libgtksourceview-3.0-0 libgtksourceview-3.0-common libgxps2 libisofs6
  libjson-glib-1.0-0 libjte1 libkpathsea6 libmozjs185-1.0 libmpeg2-4
  libmusicbrainz5-0 libneon27-gnutls libpth20 libquvi-scripts libquvi7
  libsidplay1 libspectre1 libt1-5 libtotem-plparser17 libtracker-sparql-0.14-0
  libtwolame0 libunistring0 libyelp0 ttf-dejavu ttf-dejavu-extra yelp yelp-xsl
Suggested packages:
  vcdimager tracker gpgsm gnupg2 sidplay-base xsidplay libspectre1-dbg eog
  totem mp3-decoder xdg-user-dirs
The following NEW packages will be installed:
  brasero brasero-common gir1.2-atk-1.0 gir1.2-clutter-1.0
  gir1.2-clutter-gst-1.0 gir1.2-cogl-1.0 gir1.2-coglpango-1.0
  gir1.2-evince-3.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0
  gir1.2-gst-plugins-base-0.10 gir1.2-gstreamer-0.10 gir1.2-gtk-3.0
  gir1.2-gtkclutter-1.0 gir1.2-gtksource-3.0 gir1.2-json-1.0 gir1.2-pango-1.0
  gnome-desktop3-data gnome-sushi gnome-user-guide gstreamer0.10-plugins-ugly
  hwdata libbrasero-media3-1 libclutter-1.0-0 libclutter-1.0-common
  libclutter-gst-1.0-0 libclutter-gtk-1.0-0 libcogl-common libcogl-pango0
  libcogl9 libdjvulibre-text libdjvulibre21 libevdocument3-4 libevview3-3
  libexempi3 libgjs0b libgmime-2.6-0 libgnome-desktop-3-2 libgpgme11
  libgtksourceview-3.0-0 libgtksourceview-3.0-common libgxps2 libisofs6
  libjson-glib-1.0-0 libjte1 libkpathsea6 libmozjs185-1.0 libmpeg2-4
  libmusicbrainz5-0 libneon27-gnutls libpth20 libquvi-scripts libquvi7
  libsidplay1 libspectre1 libt1-5 libtotem-plparser17 libtracker-sparql-0.14-0
  libtwolame0 libunistring0 libyelp0 nautilus ttf-dejavu ttf-dejavu-extra yelp
  yelp-xsl
0 upgraded, 66 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.6 MB of archives.
After this operation, 94.7 MB of additional disk space will be used.
Do you want to continue [Y/n]?

(instant heart attack)

Brasero is one of the suggested packages for nautilus and my apt.conf is as craigevil's regarding recommended and suggested dependencies.


All times are GMT -5. The time now is 05:58 AM.