Difference between package installation with rpm and zypper

Hello Everyone,

I want to know the difference between installing the package through rpm command and zypper. When I tried to install zenity package through rpm command it shows dependencies to be installed while I try to install the same package with zypper it is not installing any other packages. Why is it so?

Thanks.

rpm does not pull in dependencies you got to do that manually
zypper/yast/apper all resolve dependencies and will download and install any that are needed that can be found in the available repos

Does that help??

If you install via rpm, compiled from source on your computer or downloaded from internet, you have to make sure of all the dependencies and their version numbers. This method is preferable when you want to install a particular .rpm file else let the yast or zypper do the dirty job for you and you don’t have to worry about version compatibility. They’ll pull the appropriate dependency list for you. In general, zypper and yast are user friendly tools that makes ones life easier. Hope this helps.

Regards,
Hrudai.

Thanks for the reply but why does zenity package lists dependencies when installing through rpm but doesn’t list any dependencies while installing the same with zypper.

Thank You Hrudai but when installing the same package with zypper doesn’t install any dependencies whereas installing with rpm asks for dependencies.

Hmm. Did you check the version of the package you’re trying to install? I’m guessing, the (rpm)version you’re trying to install is different from the one installed by zypper. Since a different version of a package may require different set of dependencies, you’re asked to install dependencies. The best way to check this is using Yast aka Software Management. I’d recommend you to install a package using zypper or Yast. This way, you get the latest stable packages from the selected repos. It’s much safer too coz the risk of breaking your install is very minimal.

Regards,
Hrudai.

Yeah, I have checked the version and both are same.

Interesting. It could be because of what was packaged into the rpm and what was left out. I think the only way to be sure about it is by comparing their sources.
Did you compile it yourself or downloaded it from the internet?

Regards,
Hrudai.

Maybe your zypper cache or your RPM database are outdated/inconsistent.

Try running “sudo zypper clean -a” (or remove the directory /var/cache/zypp/).
And if that doesn’t help, “sudo rpm --rebuilddb”.

And maybe it would help if you posted the exact dependency message you get.

There is absolutely no difference in dependency handling between zypper/YaST/apper/rpm, because everything uses rpm in the end.

I have downloaded the package from official repository.

I have removed the directory (/var/cache/zypp/) and tried installing the zenity package but it asks for the following dependencies libwebkitgtk-3_0-0 and libjavascriptcoregtk-3_0-0

Those are not dependencies for the package in the repos. So where did the RPM come from?? And exactly which version? in the repos the current is 3.10.2-2.8.1

They are for the package in the update repo:

wolfi@amiga:~> rpm -q --requires zenity
/usr/bin/perl
libX11.so.6()(64bit)
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libgdk-3.so.0()(64bit)
libgdk_pixbuf-2.0.so.0()(64bit)
libglib-2.0.so.0()(64bit)
libgobject-2.0.so.0()(64bit)
libgtk-3.so.0()(64bit)
libnotify.so.4()(64bit)
libpango-1.0.so.0()(64bit)
libpthread.so.0()(64bit)
libpthread.so.0(GLIBC_2.2.5)(64bit)
libwebkitgtk-3.0.so.0()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1

(and libwebkitgtk-3_0-0 in turn requires libjavascriptcoregtk-3.0.so.0 which is in the package libjavascriptcoregtk-3_0-0)

The latest update to zenity added html support:


wolfi@amiga:~> rpm -q --changelog zenity
* Wed Sep 17 2014 dimstar@opensuse.org
- Add pkgconfig(webkitgtk-3.0) BuildRequires: enable --html output
  features (bnc#896674).
...

So probably you tried to install the package via zypper before that change?

On 2014-10-04 18:06, nishanth9042 wrote:

> I have removed the directory (/var/cache/zypp/) and tried installing the
> zenity package but it asks for the following dependencies
> libwebkitgtk-3_0-0 and libjavascriptcoregtk-3_0-0

Please, instead of describing things, post the command you type and the response, pasted directly from the terminal in a single mouse sweep, and please do so inside code tags (the ‘#’ button in the forum editor).
http://susepaste.org/images/15093674.jpg

For instance, we don’t know if the above message is from rpm or from zypper or what.

Post like this:


Telcontar:~ # zypper install --dry-run zenity
Retrieving repository 'Local RPMs' metadata ...................................................................[done]
Retrieving repository 'Local RPMs 13.1' metadata ..............................................................[done]
Retrieving repository 'OBS: Education' metadata ...............................................................[done]
Building repository 'OBS: Education' cache ....................................................................[done]
Retrieving repository 'OBS: Emulators: Wine' metadata .........................................................[done]
Building repository 'OBS: Emulators: Wine' cache ..............................................................[done]
Retrieving repository 'OBS: benchmark' metadata ...............................................................[done]
Building repository 'OBS: benchmark' cache ....................................................................[done]
Retrieving repository 'OBS: filesystems' metadata .............................................................[done]
Building repository 'OBS: filesystems' cache ..................................................................[done]
Loading repository data...
Reading installed packages...
'zenity' is already installed.
No update candidate for 'zenity-3.10.2-2.8.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.
Telcontar:~ #

Even better if you use the verbose switch: “zypper --verbose install …”


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

I am trying to install zenity version 3.10.2-2.8.1.

Ok missed the
libwebkitgtk-3.0.so.0()(64bit)

Package was in Yast and I have the fonts set too small

Yes, that’s the latest version from the update repo and requires libwebkitgtk-3_0-0.
If you install that with zypper (now), libwebkitgtk-3_0-0 (and libjavascriptcoregtk-3_0-0) should get installed as well.
If not, it would be a (grave) bug in zypper… :wink:

When I try this command

zypper in zenity

It does not install any dependencies.

Would not if you already have the packages

No,those packages are not installed.