jean.michel.78
Posts: 32
Joined: Fri Aug 24, 2012 11:29 am
Location: montigny 78 france
Contact: Website

apt-get and dependencies

Mon Aug 27, 2012 8:44 am

hello RPI fans
i dont understand why i get so much dependencies
each i add a package a lot of packages are installed
i dont know why ?
some packages have nothing to do with the installed one
any idea ?
example i add cheese
i get all these 43 packages
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main freepats all 20060219-1 [29.0 MB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gir1.2-cogl-1.0 armhf 1.10.2-6 [32.5 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gir1.2-coglpango-1.0 armhf 1.10.2-6 [20.0 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gir1.2-json-1.0 armhf 0.14.2-1 [83.6 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gir1.2-clutter-1.0 armhf 1.10.8-2 [371 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gir1.2-clutter-gst-1.0 armhf 1.5.4-1+b1 [10.8 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libkpathsea6 armhf 2012.20120628-2 [157 kB]
Get:8 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libt1-5 armhf 5.1.2-3.5 [160 kB]
Get:9 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libevdocument3-4 armhf 3.4.0-2+build1 [670 kB]
Get:10 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libevview3-3 armhf 3.4.0-2+build1 [573 kB]
Get:11 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gir1.2-evince-3.0 armhf 3.4.0-2+build1 [504 kB]
Get:12 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gir1.2-gtkclutter-1.0 armhf 1.2.0-2 [10.2 kB]
Get:13 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gir1.2-gtksource-3.0 armhf 3.4.2-1 [115 kB]
Get:14 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libyelp0 armhf 3.4.2-1 [189 kB]
Get:15 http://mirrordirector.raspbian.org/raspbian/ wheezy/main yelp-xsl all 3.4.2-1 [540 kB]
Get:16 http://mirrordirector.raspbian.org/raspbian/ wheezy/main yelp armhf 3.4.2-1 [547 kB]
Get:17 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gnome-user-guide all 3.4.2-1+build1 [6415 kB]
Get:18 http://mirrordirector.raspbian.org/raspbian/ wheezy/main liba52-0.7.4 armhf 0.7.4-16 [31.4 kB]
Get:19 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libmpeg2-4 armhf 0.4.1-3 [61.9 kB]
Get:20 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libsidplay1 armhf 1.36.59-5 [77.1 kB]
Get:21 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libtwolame0 armhf 0.3.13-1 [59.9 kB]
Get:22 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gstreamer0.10-plugins-ugly armhf 0.10.19-2 [514 kB]
Get:23 http://mirrordirector.raspbian.org/raspbian/ wheezy/main hwdata all 0.233-1 [415 kB]
Get:24 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libcamel-1.2-33 armhf 3.4.3-1+b1 [808 kB]
Get:25 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libcanberra-gtk3-module armhf 0.28-4 [18.2 kB]
Get:26 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libclutter-1.0-common all 1.10.8-2 [835 kB]
Get:27 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libclutter-imcontext-0.1-bin armhf 0.1.4-3 [7554 B]
Get:28 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libcogl-common all 1.10.2-6 [243 kB]
Get:29 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libedataserver-1.2-16 armhf 3.4.3-1+b1 [513 kB]
Get:30 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libebook-1.2-13 armhf 3.4.3-1+b1 [506 kB]
Get:31 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libical0 armhf 0.48-2 [196 kB]
Get:32 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libecal-1.2-11 armhf 3.4.3-1+b1 [541 kB]
Get:33 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libedataserverui-3.0-1 armhf 3.4.3-1+b1 [501 kB]
Get:34 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libmozjs185-1.0 armhf 1.8.5-1.0.0+dfsg-3 [1225 kB]
Get:35 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libgjs0b armhf 1.32.0-2 [203 kB]
Get:36 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libgssdp-1.0-3 armhf 0.12.1-2 [25.8 kB]
Get:37 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libgupnp-1.0-4 armhf 0.18.3-1 [65.4 kB]
Get:38 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libmx-bin armhf 1.4.6-1 [325 kB]
Get:39 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libvisual-0.4-plugins armhf 0.4.0.dfsg.1-7 [133 kB]
Get:40 http://mirrordirector.raspbian.org/raspbian/ wheezy/main nautilus-data all 3.4.2-1+build1 [1963 kB]
Get:41 http://mirrordirector.raspbian.org/raspbian/ wheezy/main nautilus armhf 3.4.2-1+build1 [989 kB]
Get:42 http://mirrordirector.raspbian.org/raspbian/ wheezy/main nautilus-sendto armhf 3.0.3-2+b1 [200 kB]
Get:43 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gnome-sushi armhf 0.4.1-3 [70.4 kB]

User avatar
Jim JKla
Posts: 2219
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK

Re: apt-get and dependencies

Mon Aug 27, 2012 8:48 am

The road to bloatware is scattered with dependencies. :D

I think I had over 200 on one of my instalations 43 seems quite tame (I can't be exact it's been re-imaged a few times since)
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick

timothy3592
Posts: 64
Joined: Wed Jun 13, 2012 6:06 am

Re: apt-get and dependencies

Mon Aug 27, 2012 8:59 am

A lot of those are libraries. They serve the same function as .dll files on a windows machine. If you ever look into C:\Program Files\ then you'll see what I mean. However it's also pulling in nautilus and bits of the GNOME desktop environment. I assume that this is because cheese is one of the standard programs that comes with GNOME and has plugins or something that play well with GNOME's file manager nautilus. The only thing you can do is cancel the install and retry while adding - and then then name of the package you don't want eg. aptitude install cheese -nautilus and see if apt complains or not. If it just won't take it then you might have to just suck it up and install uneeded packages.

jean.michel.78
Posts: 32
Joined: Fri Aug 24, 2012 11:29 am
Location: montigny 78 france
Contact: Website

Re: apt-get and dependencies

Mon Aug 27, 2012 9:30 am

thanks both ok for nautilus explanations arg my disk (sdcard) is full
i have removed some packages but this last action has not install any cheese but the
root partition is quite full

how to clean that
thinks for the libraries explanation i dont use windows for a long time now
mandriva was my love during years i use suse naow on my PC :lol:

User avatar
joan
Posts: 14017
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: apt-get and dependencies

Mon Aug 27, 2012 9:44 am

jean.michel.78 wrote:... but the
root partition is quite full

how to clean that ...
Perhaps log files?

Look in /var/log for large files, e.g.

ls -lhSr /var/log

I'd just delete the backups (ones ending in e.g. name.number.gz)

User avatar
mpthompson
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
Contact: Website

Re: apt-get and dependencies

Mon Aug 27, 2012 5:11 pm

Just reminder to do the following command after a big install:

sudo apt-get clean

Apt will cache every package it downloads which can take up a significant amount of space. Running 'clean' will recover that space.

Alvaro
Posts: 29
Joined: Sun Aug 19, 2012 8:47 am

Re: apt-get and dependencies

Mon Aug 27, 2012 8:16 pm

Aptitude is much better at dependency handling. If you install something and want to remove it afterwards, aptitude will remove the dependencies as well.

To install as few extra packages as possible, use --without-recommends. Example:

Code: Select all

aptitude install --without-recommends blahblahpackage
To purge a package:

Code: Select all

aptitude --purge remove blahblahpackage
Before that, you may want to run

Code: Select all

apt-get clean && apt-get autoremove

Return to “Raspbian”