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