View previous topic :: View next topic |
Author |
Message |
ElleStone Tux's lil' helper
Joined: 12 Mar 2013 Posts: 106
|
Posted: Sun Oct 04, 2015 2:16 pm Post subject: [solved] depgraph --depth=0 shows 3020 GIMP dependencies? |
|
|
I was curious just how many packages GIMP really depends on.
I ran "equery depgraph --depth=0 gimp-9999", which listed 3020 packages.
Well, that can't be right. I only have 540 packages installed on my system.
At least that's how many packages are listed by "equery list '*/*'". And "emerge -pv --depclean" agrees, showing Code: | Packages installed: 540
Packages in world: 112
Packages in system: 44
Required packages: 540 |
Is "3020 packages" the number of packages you'd have to install if you installed using all the USE flags for every possible program in the depgraph?
How do you determine how many dependencies a package really has, all the way down to the kernel, given the USE flags actually used to install the system (I'm pretty sure texlive, for example, isn't an actual GIMP dependency)?
Thanks! for any enlightenment on this question.
Elle Stone
Last edited by ElleStone on Mon Oct 05, 2015 3:01 pm; edited 1 time in total |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9601 Location: almost Mile High in the USA
|
Posted: Mon Oct 05, 2015 12:55 am Post subject: |
|
|
Does
Code: | equery depgraph --depth=1 gimp-9999 |
display the data interested?
man page of equery under the depgraph section wrote: | --depth=NUM
Limit the dependency graph to a depth of NUM. --depth=0 means no
maximum depth. Default depth is set to 1.
|
_________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
ElleStone Tux's lil' helper
Joined: 12 Mar 2013 Posts: 106
|
Posted: Mon Oct 05, 2015 9:45 am Post subject: |
|
|
eccerr0r wrote: | Does
Code: | equery depgraph --depth=1 gimp-9999 |
display the data interested? |
No, not really. The specific context of the question was:
* if you install Gentoo in a Virtual Machine,
* and the only package you are interested in running in the virtual machine is the very latest version of babl/GEGL/GIMP,
* and you use a minimal window manager (for example IceWM and startx), instead of a full desktop,
* how many packages would you need to install, starting from the kernel and on up to babl/GEGL/GIMP?
However, in general "depgraph" usually shows more dependencies than are really required to install any given package. So is there a way to list "all and only" the packages on which a given package actually depends, given the existing system use flags and make.conf?
I realize "emerge -pv new-package" will show what new packages would be installed on the actual system in order to install a new package. But there have been times when I wanted to know "what are all the packages that this new package depends on", and not just "how many new packages will be installed along wih the new package". |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9601 Location: almost Mile High in the USA
|
Posted: Mon Oct 05, 2015 2:24 pm Post subject: |
|
|
It sounds like emerge -epv new-package is what you want to do then? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
ElleStone Tux's lil' helper
Joined: 12 Mar 2013 Posts: 106
|
Posted: Mon Oct 05, 2015 2:59 pm Post subject: |
|
|
eccerr0r wrote: | It sounds like emerge -epv new-package is what you want to do then? |
Yes! Thanks! That looks right. It doesn't go all the way back to include the kernel and bootloader, but does seem to pick up everything else.
In case anyone else is curious what the "-e" in "-epv" does:
https://dev.gentoo.org/~zmedico/portage/doc/man/emerge.1.html
--emptytree (-e)
Reinstalls target atoms and their entire deep dependency tree, as though no packages are currently installed. You should run this with --pretend first to make sure the result is what you expect. |
|
Back to top |
|
|
|