[opensuse-packaging] dependencies, why and where
![](https://seccdn.libravatar.org/avatar/68dc000f298362fd7f138bbead54a578.jpg?s=120&d=mm&r=g)
Hi everyone, hope i'm on the correct list. Let me start by thanking you for opensuse, not to come off to bad asking these questions ;) Why does a package depend on another and where/how can I find out how? I'm asking this because there are certain deps. that I don't fully understand; Such as php5 depends sqlite, php5-json and other packages that I atleast, cannot find out why it does? And man, installs cronjob which would use makewhatis, but does not depend on it? subversion.. want's apache but not any DAV support? I'm puzzled, please enlighten me =) ps. I really love that the base install is below 400MB, thank you for that! ;) c. -- When mirror toward umbrella ruminates, diskette for prays. -------------------------------------------------------- Christofer Olofsson Technical Specialist Net Entertainment NE AB, Birger Jarlsgatan 57 B, S-113 56 Stockholm, Sweden T: , F:+46 8 556 967 07 christofer.olofsson@netent.com, www.netent.com Better Games --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/dcaea5e8a6fad867936a40a9c21e8ff3.jpg?s=120&d=mm&r=g)
Hi Christofer, Le vendredi 09 novembre 2007, Christofer Olofsson a écrit :
Hi everyone, hope i'm on the correct list.
Let me start by thanking you for opensuse, not to come off to bad asking these questions ;)
Why does a package depend on another and where/how can I find out how?
Usually because a binary in package A needs a library from package B, or a script or binary from package A needs a binary or script from package B. Try rpm -q --provides <package> and rpm -q --requires <package>. -- Jean Delvare Suse L3 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/6be99853e4fc9af95698fa1b78439c8d.jpg?s=120&d=mm&r=g)
Christofer Olofsson escribió:
Such as php5 depends sqlite, php5-json and other packages that I atleast, cannot find out why it does?
php5 does not really depend on php5-json or php5-sqlite, what happends is that those packages are reccommended(soft dependency), and yast/zypper honours it. This is because PHP is documented to work that way, if you see the docs, you will find "this extension is bundled with PHP and enabled by default since version x.y.x" and authors of massively deployed scripts rely on this, breaking it causes grief.
subversion.. want's apache but not any DAV support?
subversion uses apr*, bdb,neon (webdav library) , and no, subversion does not depend of apache, but you certainly want to combine both ;) -- "If eval() is the answer, you're almost certainly asking the wrong question." --Rasmus Lerdorf Cristian Rodríguez R, Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/68dc000f298362fd7f138bbead54a578.jpg?s=120&d=mm&r=g)
Hi!
Christofer Olofsson escribió:
Such as php5 depends sqlite, php5-json and other packages that I atleast, cannot find out why it does?
php5 does not really depend on php5-json or php5-sqlite, what happends is that those packages are reccommended(soft dependency), and yast/zypper honours it.
I follow, great to know, thanks. Can zypper show these recommended packages?
subversion.. want's apache but not any DAV support?
subversion uses apr*, bdb,neon (webdav library) , and no, subversion does not depend of apache, but you certainly want to combine both ;)
Yes, or atleast with a webserver, say lighttpd instead. (Coming from debian who installs apache-apr only.. or how it was, been a while since) Thanks for your sane answers, now to learn how to not accept recommended packages, i've heard of this /etc/zypp/hold-file =). Thanks to Jean aswell, those rpm commands gave me more info, although not really a solution, I found out what was absolutely needed just by removing what I didn't want, if an error occured (dep) I kept that package. Thanks again, chol.
-- "If eval() is the answer, you're almost certainly asking the wrong question." --Rasmus Lerdorf
Cristian Rodríguez R, Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
-------------------------------------------------------- Christofer Olofsson Technical Specialist Net Entertainment NE AB, Birger Jarlsgatan 57 B, S-113 56 Stockholm, Sweden M: , T: , F:+46 8 556 967 07 christofer.olofsson@netent.com, www.netent.com Better Games --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/6be99853e4fc9af95698fa1b78439c8d.jpg?s=120&d=mm&r=g)
Christofer Olofsson escribió:
I follow, great to know, thanks. Can zypper show these recommended packages?
rpm -q --recommends php5
Yes, or atleast with a webserver, say lighttpd instead. (Coming from debian who installs apache-apr only.. or how it was, been a while since)
huh ? last time I checked apache ddoes not get installed..
now to learn how to not accept recommended packages,
The Recommended packages are there for a real life use reason I suggest you follow that reccommendation. -- "If eval() is the answer, you're almost certainly asking the wrong question." --Rasmus Lerdorf Cristian Rodríguez R, Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/68dc000f298362fd7f138bbead54a578.jpg?s=120&d=mm&r=g)
From: Cristian Rodriguez [mailto:crrodriguez@suse.de] Christofer Olofsson escribió:
I follow, great to know, thanks. Can zypper show these recommended packages?
rpm -q --recommends php5 This works with a package that isn't installed aswell?
Yes, or atleast with a webserver, say lighttpd instead. (Coming from debian who installs apache-apr only.. or how it was, been a while since)
huh ? last time I checked apache does not get installed.. dunno why I thought so, have been trying to reproduce it again but cannot.. anyho..
now to learn how to not accept recommended packages,
The Recommended packages are there for a real life use reason I suggest you follow that reccommendation. Hehe, nah, I know I don't need them, therefor I will exclude them. Also, if they are only 'recommends', why to automatically install them, they're not needed, only good to have. Thanks anyhow and sorry for my broken mailer.. -- "If eval() is the answer, you're almost certainly asking the wrong question." --Rasmus Lerdorf Cristian Rodríguez R, Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ -------------------------------------------------------- Christofer Olofsson Technical Specialist Net Entertainment NE AB, Birger Jarlsgatan 57 B, S-113 56 Stockholm, Sweden M: , T: , F:+46 8 556 967 07 christofer.olofsson@netent.com, www.netent.com Better Games --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/dcaea5e8a6fad867936a40a9c21e8ff3.jpg?s=120&d=mm&r=g)
Le samedi 10 novembre 2007, Christofer Olofsson a écrit :
rpm -q --recommends php5
This works with a package that isn't installed aswell?
For uninstalled packages, you must add -p and replace the package name by the full path to the package, e.g.: rpm -qp --recommends ~/download/php5-5.0.42-1.x86_64.rpm
Also, if they are only 'recommends', why to automatically install them, they're not needed, only good to have.
You answered your own question it seems. -- Jean Delvare Suse L3 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/541f0424df99fb299635f2b0c46454b0.jpg?s=120&d=mm&r=g)
Christofer Olofsson wrote:
I'm asking this because there are certain deps. that I don't fully understand; Such as php5 depends sqlite, php5-json and other packages that I atleast, cannot find out why it does?
This is actually not a hard dependency, but a "recommends". In this case it's because these php extensions are installed by default when built from upstream sources. Also the online docu states that these are by default present, e.g. http://www.php.net/sqlite says "In PHP 5, the SQLite extension and the engine itself are bundled and compiled by default.". So the idea is that if you install php5, you get the php core plus the default extensions, as the online docu says.
And man, installs cronjob which would use makewhatis, but does not depend on it? subversion.. want's apache but not any DAV support?
Don't know about these. If you think a dependency is wrong or missing, file a bugreport. Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Christofer Olofsson
-
Cristian Rodriguez
-
Jean Delvare
-
Michal Marek