[opensuse-factory] Check RPM packages required by a pattern.

Hello everybody. I would like to make a minimal base system pattern for openSUSE, but as I try to leave the packages marked as required by the base system pattern and those listed on EXTRA_PROV, the installer always tell me that can't resolve all dependencies. Does anyone knows if there is an easy way to know all the required packages for a pattern? I wonder if there is a way to use ZyPP from command line over a pattern so it resolves all dependencies and get the full packages list. What I've done is to install a minimal openSUSE 10.2 on a VMWare machine and then get all the rpm installed. It works, but there should a better way I think. Thanks. -- Samuel Partida Amores ----------------------------------- samuel.partida@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

"Samuel Partida" <samuel.partida@gmail.com> writes:
Please use 10.3 for this - and just select the minimal text install... 10.3 has a reworked minimal pattern, Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj/ SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126

2007/6/20, Andreas Jaeger <aj@suse.de>:
Ok, but I would like to know if there is some tool to get some report about all the dependencies of a pattern, recursively, the dependencies of the packages on which the pattern depends. I don't know if i'm explaining well. My goal is to be able to create a base-system pattern from scratch, so I'm searching for an easy way to test if the pattern is fully resolved or if some package depends on another which is not listed on the pattern. I've been playing with rpm queries but it turns to a mess for me when I want to query some packages. Thanks a lot. -- Samuel Partida Amores ----------------------------------- samuel.partida@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

* Samuel Partida <samuel.partida@gmail.com> [06-20-07 17:03]: [...]
I've been playing with rpm queries but it turns to a mess for me when I want to query some packages.
again, smart package manager will do what you wish on remote packages -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

2007/6/21, Patrick Shanahan <ptilopteri@gmail.com>:
Hi Patrick, I've been playing with smart a little bit, but I couldn't manage it to query a rpm file with smart. I haven't tried with a pattern file, but if you are sure that it works with them, then I'm going to reinstall smart again. I have to admit that I don't like smart :( Thanks a lot. -- Samuel Partida Amores ----------------------------------- samuel.partida@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

* Samuel Partida <samuel.partida@gmail.com> [06-20-07 18:21]:
Like it ??? What's to like? then try apt or yum or ??? but smart will probably do it the easiest. smart query --show-provides --show requires smart-0.51-1.guru.suse101@x86_64 smart-0.51-1.guru.suse101@x86_64 Provides: cElementTree.so()(64bit) ccache.so()(64bit) cdebver.so()(64bit) cdistance.so()(64bit) crpmver.so()(64bit) ctagfile.so()(64bit) smart = 0.51-1.guru.suse101@x86_64 Requires: /usr/bin/python bzip2 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libpthread.so.0()(64bit) popt python >= 2.4 [pre] python < 2.5 [pre] python python-elementtree python-xml rpm rpm-python zlib -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

That's not what I really need Patrick. I need to get the full dependency resolution from a pattern. For example, let's take the Base System pattern (base-10.n-build.arch.pat), it depends on other patterns (yas2_basis and sw_management_pattern I think), and on lots of packages. I want to get an easy way, a tool or something else, that for a pattern, it shows all the packages it need, resolving even the dependencies of other packages or patterns it depends. I think it is what ZyPP does, but I haven't found a shell command or tool to use the ZyPP resolver as I need. I'm not sure if there is some Python binding or something like, as I use Python a lot for system administration, but I'm not a software developer neither I know how is the ZyPP API. Now asking to Andreas, if there is no such tool, then a new one could be created. Thanks a lot! 2007/6/21, Patrick Shanahan <ptilopteri@gmail.com>:
-- Samuel Partida Amores ----------------------------------- samuel.partida@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

Samuel Partida <samuel.partida@gmail.com> writes:
That's not what I really need Patrick. I need to get the full dependency resolution from a pattern.
Why do you really need that? I kept the patterns minimal so that you see what's required and we don't need to have to add some package and then forget to remove it later....
Those two patterns in 10.3 are optional.
KIWI does exactly this kind of resolving and uses zypper or smart for this. I suggest that you look at KIWI and see what it does.
zypper and smart are Open Source and additions are surely welcome ;-) As noted above you should be able to get this done - I just don't have a receipt for you ;-) Andreas -- Andreas Jaeger, Director Platform / openSUSE, aj@suse.de SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

Could someone tell me who builds the "mini" iso? kiwi needs a hand with a netboot for LTSP and this one works but needs modification. -- James Tremblay Director of Technology Newmarket School District Newmarket,NH http://en.opensuse.org/Education "let's make a difference" --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

* James Tremblay <jamesat@comcast.net> [06-21-07 07:06]:
Could someone tell me who builds the "mini" iso? kiwi needs a hand with a netboot for LTSP and this one works but needs modification.
Plese do not "hi-jack" threads. You have changed the subject of an existing post and started a new subject, but your message is tied to the previous thread, hi-jacking. For a new thread, start a *new* message, OR, remove the "In-Reply-To:" references from the header of the message you are using to get the list address rather than typeing it in yourself. A "Director of Technology" should know better. -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

* Samuel Partida <samuel.partida@gmail.com> [Jun 21. 2007 00:51]:
I think it is what ZyPP does, but I haven't found a shell command or tool to use the ZyPP resolver as I need.
There are Ruby bindings at http://svn.opensuse.org/svn/zypp/trunk/ruby-zypp However, they're not very well maintained :-( You might also look at the libzypp solver testsuite at http://svn.opensuse.org/svn/zypp/trunk/libzypp-testsuite/solver which provides full access to the dependency solver. Klaus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (5)
-
Andreas Jaeger
-
James Tremblay
-
Klaus Kaempf
-
Patrick Shanahan
-
Samuel Partida