LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-30-2012, 08:42 PM   #1
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483

Rep: Reputation: 31
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

Last edited by aquaboot; 10-30-2012 at 08:44 PM.
 
Old 10-30-2012, 09:15 PM   #2
Rodebian
Member
 
Registered: Apr 2012
Posts: 37

Rep: Reputation: Disabled
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.

Last edited by Rodebian; 10-30-2012 at 09:20 PM.
 
Old 10-30-2012, 10:39 PM   #3
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483

Original Poster
Rep: Reputation: 31
Thanks for the reply.

-ab
 
Old 10-30-2012, 11:26 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
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.
 
Old 10-31-2012, 12:59 AM   #5
jim_p
Member
 
Registered: Aug 2009
Distribution: Debian testing
Posts: 564

Rep: Reputation: 131Reputation: 131
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.

Last edited by jim_p; 10-31-2012 at 01:00 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unique password for "update" and "synaptic" and "apt-get" SaintDanBert Linux - Security 1 09-17-2010 04:53 AM
Aptitude giving error after "apt-get update" ciden Linux - Software 6 03-22-2008 03:53 AM
LXer: "Linux more secure than Windows", Microsoft vulnerability report suggests LXer Syndicated Linux News 0 08-21-2007 01:30 PM
LXer: "Linux more secure than Windows", Microsoft vulnerability report suggests LXer Syndicated Linux News 0 08-21-2007 09:20 AM
does failed using urpmi messed up my "Install Software" / "mandrake update" ??? sirpelidor Mandriva 1 11-02-2003 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration