[zypp-devel] Why this rpm can't be installed by zypper by can be installed by "rpm -i"?
Hi All, I wrote a Perl script that can compose simple rpm file byte by byte. The rpm generated by the script can be installed by "rpm -i" but can't be installed by zypper. Following is the error message: # zypper install mtf-0.0.1-1.i586.rpm Loading repository data... Reading installed packages... 'mtf = 0:0.0.1-1' not found in package names. Trying capabilities. No provider of 'mtf = 0:0.0.1-1' found. Resolving package dependencies... Nothing to do. Best regards, John Chen
On Wed, Dec 29, 2010 at 09:19:06AM +0800, Chen, Zhang Z wrote:
I wrote a Perl script that can compose simple rpm file byte by byte. The rpm generated by the script can be installed by "rpm -i" but can't be installed by zypper. Following is the error message:
# zypper install mtf-0.0.1-1.i586.rpm Loading repository data... Reading installed packages... 'mtf = 0:0.0.1-1' not found in package names. Trying capabilities. No provider of 'mtf = 0:0.0.1-1' found. Resolving package dependencies...
Nothing to do.
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. Cheers, Michael. -- Michael Schroeder mls@suse.de 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@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
-----Original Message----- From: Michael Schroeder [mailto:mls@suse.de] Sent: Monday, January 03, 2011 7:40 PM To: Chen, Zhang Z Cc: zypp-devel@opensuse.org Subject: Re: [zypp-devel] Why this rpm can't be installed by zypper by can be installed by "rpm -i"?
On Wed, Dec 29, 2010 at 09:19:06AM +0800, Chen, Zhang Z wrote:
I wrote a Perl script that can compose simple rpm file byte by byte. The rpm generated by the script can be installed by "rpm -i" but can't be installed by zypper. Following is the error message:
# zypper install mtf-0.0.1-1.i586.rpm Loading repository data... Reading installed packages... 'mtf = 0:0.0.1-1' not found in package names. Trying capabilities. No provider of 'mtf = 0:0.0.1-1' found. Resolving package dependencies...
Nothing to do.
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. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
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. So your mtf-0.0.1-1.i586.rpm is really "mtf-0.0.1-1.src.rpm"? Zypper should be able to install src.rpm packages, please open a bug against it. Cheers, Michael. -- Michael Schroeder mls@suse.de 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@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
2011/1/7 Michael Schroeder
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. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Fri, Jan 07, 2011 at 01:43:42PM +0100, Cristian Morales Vega wrote:
2011/1/7 Michael Schroeder
: 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@suse.de 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@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Friday 07 January 2011 12:16:31 Michael Schroeder wrote:
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. So your mtf-0.0.1-1.i586.rpm is really "mtf-0.0.1-1.src.rpm"?
Zypper should be able to install src.rpm packages, please open a bug against it.
IMO no bug, as zypper uses a different command to onstall source rpms: source-install (si) <name> ... Install specified source packages and their build dependencies. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres ZYPP Development ma@suse.de SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Monday 10 January 2011 12:52:35 Michael Andres wrote:
IMO no bug, as zypper uses a different command to onstall source rpms:
source-install (si) <name> ... Install specified source packages and their build
Sorry - unfortunately the man page also says: Note that the source packages must be available in repositories you are using. ... So you can't directly install a source rpm. It's indeed worth a bug/feature request: https://bugzilla.novell.com/show_bug.cgi?id=663358 -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres ZYPP Development ma@suse.de SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (4)
-
Chen, Zhang Z
-
Cristian Morales Vega
-
Michael Andres
-
Michael Schroeder