On 05/21/2010 08:31 AM, Roger Oberholtzer wrote:
I want to add an installed package check to our installation. I am looking for suggestions about the best way to do this. We install on pre-installed openSUSE systems, so we never know what will be there.
So you're installing several pieces of software which are not packed as .rpm on various openSUSE systems? In that case, just make a list of the packages you require to be installed beforhand and simply feed this list to 'zypper install ...'. You can even make this non-interactive and check for zypper exit value to see if all is OK (packages already there, or successfully installed), or some packages are missing or can't be installed). That might be all there is to it; go ahead and install your software. Of course, if you had .rpms, the procedure would be a lot easier: just put them into a directory, add this directory as repo to zypper (zypper ar /your/rpms yourrepoalias) and then 'zypper install your sofware').
But we rely on certain packages being present. The obvious answer would to be to put these as dependencies in an RPM. But is that the only way? Could we define a pattern that is all these packages and install the pattern? Or is there a smart way to do this with YMP? There would be many packages.
I don't think it's worth fiddling with patterns or YMPs, given your description. -- cheers, jano Ján Kupec YaST team ---------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 ---------------------------------------------------------(IRC)--- Server: irc.freenode.net Nick: jniq Channels: #zypp #yast #suse #susecz ---------------------------------------------------------(EOF)---