2020/10/27(火)openSUSEにchrome browserを入れる

ちゃんと残しておかないときっと将来自分でも忘れてわかんなくなると思ったのでメモ。

keruru@madoka:~> sudo zypper ar http://dl.google.com/linux/chrome/rpm/stable/x86_64 Google-Chrome
[sudo] password for root: 
Adding repository 'Google-Chrome' .......................................................................................................[done]
Repository 'Google-Chrome' successfully added

URI         : http://dl.google.com/linux/chrome/rpm/stable/x86_64
Enabled     : Yes
GPG Check   : Yes
Autorefresh : No
Priority    : 99 (default priority)

Repository priorities are without effect. All enabled repositories share the same priority.
keruru@madoka:~> wget https://dl.google.com/linux/linux_signing_key.pub
--2020-10-27 19:24:19--  https://dl.google.com/linux/linux_signing_key.pub
Resolving dl.google.com (dl.google.com)... 2404:6800:4004:81f::200e, 172.217.175.110
Connecting to dl.google.com (dl.google.com)|2404:6800:4004:81f::200e|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10218 (10.0K) [application/octet-stream]
Saving to: ‘linux_signing_key.pub’

linux_signing_key.pub               100%[==================================================================>]   9.98K  --.-KB/s    in 0.01s   

2020-10-27 19:24:20 (787 KB/s) - ‘linux_signing_key.pub’ saved [10218/10218]

keruru@madoka:~> sudo rpm --import linux_signing_key.pub 
keruru@madoka:~> sudo zypper ref -f
Forcing raw metadata refresh
Retrieving repository 'Google-Chrome' metadata ..........................................................................................[done]
Forcing building of repository cache
Building repository 'Google-Chrome' cache ...............................................................................................[done]
Forcing raw metadata refresh
Retrieving repository 'openSUSE-Leap-15.2-1' metadata ...................................................................................[done]
Forcing building of repository cache
Building repository 'openSUSE-Leap-15.2-1' cache ........................................................................................[done]
Forcing raw metadata refresh
Retrieving repository 'Non-OSS Repository' metadata .....................................................................................[done]
Forcing building of repository cache
Building repository 'Non-OSS Repository' cache ..........................................................................................[done]
Forcing raw metadata refresh
Retrieving repository 'Main Repository' metadata ........................................................................................[done]
Forcing building of repository cache
Building repository 'Main Repository' cache .............................................................................................[done]
Forcing raw metadata refresh
Retrieving repository 'Source Repository' metadata ......................................................................................[done]
Forcing building of repository cache
Building repository 'Source Repository' cache ...........................................................................................[done]
Forcing raw metadata refresh
Retrieving repository 'Main Update Repository' metadata .................................................................................[done]
Forcing building of repository cache
Building repository 'Main Update Repository' cache ......................................................................................[done]
Forcing raw metadata refresh
Retrieving repository 'Update Repository (Non-Oss)' metadata ............................................................................[done]
Forcing building of repository cache
Building repository 'Update Repository (Non-Oss)' cache .................................................................................[done]
All repositories have been refreshed.
keruru@madoka:~> sudo zypper in google-chrome-stable
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  google-chrome-stable

1 new package to install.
Overall download size: 67.7 MiB. Already cached: 0 B. After the operation, additional 227.9 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package google-chrome-stable-86.0.4240.111-1.x86_64                                            (1/1),  67.7 MiB (227.9 MiB unpacked)
Retrieving: google-chrome-stable-86.0.4240.111-1.x86_64.rpm ................................................................[done (22.4 MiB/s)]

Checking for file conflicts: ............................................................................................................[done]
(1/1) Installing: google-chrome-stable-86.0.4240.111-1.x86_64 ...........................................................................[done]
Additional rpm output:
service: no such service atd
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/google-chrome (google-chrome) in auto mode


stable以外

Stable以外にもbetaとunstableがある。

keruru@madoka:~> zypper search google-chrome
Loading repository data...
Reading installed packages...

S  | Name                   | Summary                  | Type
---+------------------------+--------------------------+--------
   | google-chrome-beta     | Google Chrome (beta)     | package
i+ | google-chrome-stable   | Google Chrome            | package
   | google-chrome-unstable | Google Chrome (unstable) | package
keruru@madoka:~> 

unstable -> beta -> stable の順で安定化されていく。