Mailinglist Archive: zypp-devel (31 mails)

< Previous Next >
Re: [zypp-devel] Why this rpm can't be installed by zypper by can be installed by "rpm -i"?
On Fri, Jan 07, 2011 at 01:43:42PM +0100, Cristian Morales Vega wrote:
2011/1/7 Michael Schroeder <mls@xxxxxxx>:
On Thu, Jan 06, 2011 at 05:38:49PM +0800, Chen, Zhang Z wrote:
My guess is that the package has a non-zero epoch and zypper
can't deal with it. Check the last line of:
   rpm -qp --provides mtf-0.0.1-1.i586.rpm

If the package has an epoch, please open a bug report against zypper.

Found the root cause: zypper expects a sourcerpm tag in binary packages.

Yes, if a package doesn't contain a "sourcerpm" tag, it's a source
package.

Just curiosity. There is a list of *mandatory* tags? At some point I
looked into it and saw a lot of tags that I was not sure if were
optional or mandatory.

I can't give you a list, I don't think there's a standard that
says that an rpm must have the following tags. You probably
need to create a rpm with only a few tags and check if rpm
segfaults or not ;-)

Here are some tags every rpm should have:

NAME, VERSION, RELEASE, ARCH
SUMMARY, DESCRIPTION
BUILDHOST, BUILDTIME
SIZE
LICENSE, GROUP
SOURCERPM (if it's a binary package)
PROVIDENAME, PROVIDEFLAGS, PROVIDEVERSION
PAYLOADFORMAT

I'm probably missing a few tags, feel free to experiment ;-)

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
List Navigation