Why I don't see google chrome in zypper search i?

I would like to remove google chrome beta package and install a stable version using zypper.

However, when I run **sudo zypper se i | grep chrome ** (also trying google-chrome and google-chrome-beta - full name) it is not found.

When I try to install it with sudo zypper install google-chrome: it informs me it is installed. Also before I see;

Reading installed packages…
‘google-chrome’ not found in package names. Trying capabilities.
Resolving package dependencies…

Why does zypper behave in this way?? How to uninstall beta version of google chrome and install the latest stable release?

I know I can handle this in YaST but I am interested in how to resolve this using zypper.

Of course, this cannot work.
You run “zypper se i”, which returns all packages that contain an ‘i’ (i.e. “zypper se i” means "search for all packages that contain an ‘i’ in the name). “google-chrome” does not contain an ‘i’ so it is not included. And then grepping the list for chrome gives nothing of course.
I suppose you wanted to use “zypper se -i” instead? This would list all installed packages. Or better “zypper pa -i”, that’s intended for listing all packages, not searching.

But if you use “se” (search) anyway, just specify a search pattern. Use e.g. “zypper se chrome”, that should find it, if you have it installed.

Or one of those:

rpm -qa "*chrome*" 
rpm -qa | grep chrome

Btw, you don’t need sudo for a package search.

When I try to install it with sudo zypper install google-chrome: it informs me it is installed.

Well, if you know the package’s name anyway, why don’t you just run “zypper rm google-chrome” or “rpm -e google-chrome” to uninstall it? :wink:

How to uninstall beta version of google chrome and install the latest stable release?

That depends on how you installed it in the first place, and how the package is named of course.
Or use the “-f” option to force an install. But as chrome is not in any repo, you would have to download it first.
Probably you added a repo for Chrome? I cannot tell you how the packages are named in there. Use “zypper pa reponame/reponumber” to list all from that particular repo.

See also “zypper help”, and the help page for each command, e.g. “zypper help se”.

Ok thanks heh. This was really a dumb mistake. Since you mentioned RPM I have a related question.

What is the difference between using zypper and rpm? Can I use rpm instead of zypper? Is it full
substitute or does zypper add something else?

On Sat, 19 Jul 2014 20:16:01 +0000, rsupremo wrote:

> Ok thanks heh. This was really a dumb mistake. Since you mentioned RPM I
> have a related question.
>
> What is the difference between using zypper and rpm? Can I use rpm
> instead of zypper? Is it full substitute or does zypper add something
> else?

Zypper uses online repositories. The rpm command doesn’t.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

And zypper tries to install other required packages automatically, rpm doesn’t (it just complains that the dependencies are not fulfilled).

For removing packages it’s similar: zypper will try to remove all other packages that require the one(s) you want to remove, rpm will just complain that package xxx is needed by other packages.

IOW, zypper adds automatic dependency resolution on top of rpm (among other things).

On 2014-07-19 22:16, rsupremo wrote:
>
> Ok thanks heh. This was really a dumb mistake. Since you mentioned RPM I
> have a related question.
>
> What is the difference between using zypper and rpm? Can I use rpm
> instead of zypper? Is it full
> substitute or does zypper add something else?

zypper calls rpm to do the installation, at the end. But zypper, before
that, downloads from the active repositories the list of available
packages, and the data that allows it to determine what depends on what.
Thus, when you tell zypper to install something, it creates a list of
what else needs to be installed, download them, and finally, tells rpm
to install all that.

Without zypper, when you try to install, say, firefox.rpm, using the rpm
command, it will probably abort saying it needs, for instance,
gtklib.123.so (I made the name up).

Thus you have to find out what package contains gtklib.123.so, download
it if necesary, and then tell rpm to install both packages.

Then it may tell you that foo.457.so is also missing…

So, you repeat the procedure, till you succeed.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

On 2014-07-19 21:46, rsupremo wrote:
>
> I would like to remove google chrome beta package and install a stable
> version using zypper.

Besides what they have told you already, you need to have activated the
google chrome stable repo, instead or in addition to the beta repo.

For 64 bits it is this one:


http://dl.google.com/linux/chrome/rpm/stable/x86_64

Zypper search only can search in the active repos.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))