LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-04-2008, 07:19 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Packages No Longer Required


When ever I attempt to install a package, I am prompted with a warning in CLI that tells me that I no longer need specific files / packages and to run a specific command to flush them from my system however as I look - many are critical packages I don't want to lose and I don't understand why Debian is trying to remove them from my system. For example gnome* is not something I want to remove from my workstation - it is my only installed WM.

Code:
cwilliams@tunafush:~$ sudo apt-get install icedove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  bluez-gnome libsdl1.2debian libgnomekbd2 libsdl1.2debian-alsa libepc-ui-1.0-1 bzip2 ekiga python-gst0.10 libmtp7 gcalctool libpth20 gnome-nettool gnome-media metacity libepc-1.0-1 libgtk-vnc-1.0-0 nautilus libgksu1.2-0 python-notify
  aspell pkg-config gnome-settings-daemon libgda3-common python-gnome2-extras gucharmap zenity libgksuui1.0-1 gnome-games cheese liburi-perl evolution-exchange dnsutils libspectre1 gnome-network-admin libsvga1 libgnome-media0
  app-install-data gnome-power-manager unzip gnome-cards-data totem-plugins gnome-screensaver rhythmbox libgtksourceview1.0-0 python-gdata alacarte gedit gnome-menus liblircclient0 python-gtksourceview2 gtk2-engines-pixbuf
  system-config-printer gnome-control-center libhtml-parser-perl libapm1 libpt-1.10.10-plugins-alsa gnome-themes libtrackerclient0 metacity-common seahorse libggzmod4 libxml-twig-perl mysql-common whois libtotem-plparser10 totem-common
  vinagre libpt-1.10.10 gnome-media-common nautilus-data libgpod3 libxml-parser-perl libgalago3 system-tools-backends libgweather1 guile-1.8-libs libmysqlclient15off python-gtkmozembed python-gtkhtml2 libgnomekbd-common p7zip
  gedit-common gnome-utils gnome-themes-extras libdmx1 finger gdm-themes libmusicbrainz4c2a libnet-dbus-perl fast-user-switch-applet arj gnome-about gnome-volume-manager nautilus-cd-burner libexempi3 gtk2-engines libgnomeprint2.2-data
  libgtksourceview2.0-common libkpathsea4 libgnomekbdui2 eog gdm libgtksourceview2.0-0 libslab0 capplets-data gnome-backgrounds python-eggtrayicon python-sexy python-xdg gnome-spell libggz2 libgweather-common libgtksourceview-common
  vino gnome-system-monitor evince gnome-games-data gnome-app-install gnome-user-guide libopal-2.2 totem-gstreamer libgnome-window-settings1 libmetacity0 libgnomevfs2-bin libiw29 zip python-gdbm gnome-core gnome-netstatus-applet
  dmz-cursor-theme python-4suite-xml libxklavier12 liboobs-1-4 libgucharmap6 gnome-applets libgda3-3 svgalibg1 libpt-1.10.10-plugins-v4l libgpgme11 python-gmenu libggzcore9 libgmyth0 gconf-editor gnome-system-tools libhtml-tree-perl
  gnome-panel libwww-perl gnuchess gstreamer0.10-gnomevfs deskbar-applet libnautilus-burn4 python-gnome2-desktop gnome-applets-data libgnomeprint2.2-0 libhtml-tagset-perl desktop-file-utils libavahi-ui0 transmission-common
  gnome-session libgtkglext1 gstreamer0.10-tools libgnomeprintui2.2-0 totem-mozilla libgdl-1-0 libgnomeprintui2.2-common file-roller serpentine libopenobex1 libspeexdsp1 transmission-gtk gnome-panel-data sound-juicer libgnomecups1.0-1
  libgdl-1-common gnome-vfs-obexftp
 
Old 11-04-2008, 07:28 AM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,885
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Somewhere along the way you have removed a Gnome metapackage. You can turn off the autoremove.

Add:
APT::Get::AutomaticRemove "0";
APT::Get::HideAutoRemove "1";

to your /etc/apt/apt.conf then run apt-get update.
 
Old 11-04-2008, 07:51 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Does not appear to live on my system...

Code:
tunafush:/etc/apt/apt.conf.d# ls -l
total 32
-rw-r--r-- 1 root root  40 2008-10-27 13:11 00trustcdrom
-rw-r--r-- 1 root root  92 2008-02-16 19:15 01autoremove
-rw-r--r-- 1 root root 129 2005-11-06 17:10 10periodic
-rw-r--r-- 1 root root 110 2008-02-18 05:25 15update-stamp
-rw-r--r-- 1 root root  85 2005-11-06 17:10 20archive
-rw-r--r-- 1 root root 211 2007-06-07 07:38 50unattended-upgrades
-rw-r--r-- 1 root root 182 2008-05-14 19:37 70debconf
-rw-r--r-- 1 root root 116 2005-11-06 17:10 99update-notifier
 
Old 11-04-2008, 08:52 AM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,885
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Its not , you have to create it in /etc/apt

Mine looks like:
APT::Get::AutomaticRemove "0";
APT::Get::HideAutoRemove "1";
APT::Install-Recommends "0";
APT::Install-Suggests "0";
Debug::pkgAutoRemove "0";
APT::Default-Release "unstable";
DPkg::Post-Invoke {"echo Running prelink, please wait...;/etc/cron.daily/prelink";}
 
Old 11-04-2008, 05:56 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Autoremove is one of the least understood options in Debian I think it were better if it had not been included in apt.

If you do autoremove apt will remove those packages (duh!), but it is easy to re-install what you are missing. The configuration is not touched as you know. Have done it several times.

jlinkels
 
Old 11-04-2008, 07:02 PM   #6
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Quote:
Originally Posted by jlinkels View Post
Autoremove is one of the least understood options in Debian
All due respect, but I think it's perfectly understood (though not universally popular). Imagine you tell apt-get to install package blah, and it drags in packages yada, yada and yada as dependencies. Then later you ask apt-get to remove blah. Autoremove will nudge you to remove the dependencies blah, blah and blah as well (assuming that they aren't also dependencies of any other packages that you installed later). That's it. No muss, no fuss.

I think that aptitude keep-all clears the "to be removed" markers from all packages currently installed, so that should shut up autoremove easily. However, another way to do it is simply remove all those packages and then install the ones you actually want manually. Some people find this inconvenient, but I like a leaner system.
 
Old 11-04-2008, 07:14 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Are the packages listed older versions?
 
Old 11-04-2008, 07:17 PM   #8
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by Telemachos View Post
All due respect, but I think it's perfectly understood (though not universally popular). Imagine you tell apt-get to install package blah, and it drags in packages yada, yada and yada as dependencies. Then later you ask apt-get to remove blah. Autoremove will nudge you to remove the dependencies blah, blah and blah as well (assuming that they aren't also dependencies of any other packages that you installed later). That's it. No muss, no fuss.
I was exaggerating... but seriously, it is not logical what is being proposed, and I don't quit get what you say.

You say: install blah, and yada1, yada2 and yada3 are being installed because blah depends on them. When I install blah, I expect to be offered to remove yada1, yada2 and yada3. Because those are reverse dependencies. (Other packages depends on them, namely blah). But I don't see why I am offered to remove blah1, blah2 and blah3.

When I change my understanding slightly I assume that blah1, blah2 and blah3 depend on blah. When I remove blah, I am offered to remove blah1, blah2 and blah3. Also not very clever, because blah1..blah3 could have been installed because of package yada. When I agree to autoremove blah1..blah3, I would lose yada as a result from that. Not logical either.

Reinstalling the wanted packages again after an autoremove indeed guarantees the leanest system.

jlinkels
 
Old 11-04-2008, 07:31 PM   #9
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Quote:
Originally Posted by jlinkels View Post
You say: install blah, and yada1, yada2 and yada3 are being installed because blah depends on them. When I install blah, I expect to be offered to remove yada1, yada2 and yada3. Because those are reverse dependencies. (Other packages depends on them, namely blah). But I don't see why I am offered to remove blah1, blah2 and blah3
Huh? Either I was unclear or you misunderstood me or both. Let me try again.

I enter apt-get install slrn and APT says, "Fine, you can have slrn, but I also need to install libslang2 because it's required dependency." I do that and use slrn happily for a few months.

Later, I decide to uninstall slrn. At that point, apt-get says, "Fine, I'll remove slrn, but I recommend that you autoremove libslang2 also. I only installed it because of slrn, so if you don't want slrn, you don't need libslang2 any more."

That's all autoremove does. It tries to remove packages that were only installed as dependencies once you've removed the packages they depended on. I don't see what's illogical about that. Why would I want a library or helper program for a package I've uninstalled?

The problem in Carlos' case is that he installed Gnome using a meta-package and then removed one of the pieces or the meta-package wrapper. Since every package in the meta-package is a dependency of the main one, autoremove proceeds in a straight line and says, "Remove them all." This particular case has more to do with meta-packages than autoremove.
 
Old 11-04-2008, 07:47 PM   #10
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by Telemachos View Post
I enter apt-get install slrn and APT says, "Fine, you can have slrn, but I also need to install libslang2 because it's required dependency." I do that and use slrn happily for a few months.

Later, I decide to uninstall slrn. At that point, apt-get says, "Fine, I'll remove slrn, but I recommend that you autoremove libslang2 also. I only installed it because of slrn, so if you don't want slrn, you don't need libslang2 any more."

That's all autoremove does. It tries to remove packages that were only installed as dependencies once you've removed the packages they depended on. I don't see what's illogical about that. Why would I want a library or helper program for a package I've uninstalled?
That is according to my second understanding, and as you picture it here, it would have the desired effect. But this is a simple case.

Quote:
Originally Posted by Telemachos View Post
The problem in Carlos' case is that he installed Gnome using a meta-package and then removed one of the pieces or the meta-package wrapper. Since every package in the meta-package is a dependency of the main one, autoremove proceeds in a straight line and says, "Remove them all." This particular case has more to do with meta-packages than autoremove.
Quite possible, I think it works like that. But it is highly confusing. Should a package manager which uses meta packages extensively still try to guess what you can autoremove?

jlinkels
 
  


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
Ubuntu 7.10. Some packages no longer functioning mattnorb Ubuntu 10 11-13-2007 12:29 PM
required packages plesaleza Linux - General 3 08-11-2007 08:04 AM
required packages plesaleza Linux - General 1 08-10-2007 05:39 PM
What packages required for sound Ren Slackware 2 01-21-2004 03:53 AM
Packages that are required mikeshn Linux - General 2 10-23-2003 03:45 PM

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

All times are GMT -5. The time now is 05:22 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