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?
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
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.
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.
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.
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?
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
> 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)
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…