Skip to content

Google Chromeをインストールする

GUIをインストールしていないAmazon Linux 2023やUbuntu 26.04LTSへGoogle Chromeをインストールする方法をメモしておきます。インストールされるバイナリやライブラリのファイルサイズはそれなりに大きいので注意します。

検証環境

対象 バージョン
Amazon Linux 2023.12.20260803
Ubuntu 26.04 LTS

Amazon Linux 2023へのインストール

sudo tee /etc/yum.repos.d/google-chrome.repo << 'EOF'
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
EOF
sudo dnf install -y google-chrome-stable

Ubuntuへのインストール

curl -fsSL https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /etc/apt/keyrings/google-chrome.gpg &&
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list &&
apt update &&
apt install -y google-chrome-stable

バージョン情報の確認

今回は以下のバージョンがインストールされました。

# google-chrome -version
Google Chrome 151.0.7922.137

参考

google-chromeのヘルプ情報

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
google-chrome(1)                           USER COMMANDS                           google-chrome(1)

NAME
       google-chrome - the web browser from Google

SYNOPSIS
       google-chrome [OPTION] [PATH|URL]

DESCRIPTION
       See the Google Chrome help center for help on using the browser.

              <https://support.google.com/chrome/>

       This manpage only describes invocation, environment, and arguments.

OPTIONS
       Google  Chrome has hundreds of undocumented command-line flags that are added and removed at
       the whim of the developers.  Here, we document relatively stable flags.

       --user-data-dir=DIR
              Specifies the directory that user data (your "profile")  is  kept  in.   Defaults  to
              $HOME/.config/google-chrome  .  Separate instances of Google Chrome must use separate
              user data directories; repeated invocations of google-chrome will reuse  an  existing
              process for a given user data directory.

       --incognito
              Open in incognito mode.

       --new-window
              If PATH or URL is given, open it in a new window.

       --proxy-server=host:port
              Specify  the HTTP/SOCKS4/SOCKS5 proxy server to use for requests.  This overrides any
              environment variables or settings picked via the options dialog.  An individual proxy
              server is specified using the format:

                [<proxy-scheme>://]<proxy-host>[:<proxy-port>]

              Where <proxy-scheme> is the protocol of the proxy server, and is one of:

                "http", "socks", "socks4", "socks5".

              If the <proxy-scheme> is omitted, it defaults to "http". Also note  that  "socks"  is
              equivalent to "socks5".

              Examples:

                --proxy-server="foopy:99"
                    Use the HTTP proxy "foopy:99" to load all URLs.

                --proxy-server="socks://foobar:1080"
                    Use the SOCKS v5 proxy "foobar:1080" to load all URLs.

                --proxy-server="socks4://foobar:1080"
                    Use the SOCKS v4 proxy "foobar:1080" to load all URLs.

                --proxy-server="socks5://foobar:66"
                    Use the SOCKS v5 proxy "foobar:66" to load all URLs.

              It  is  also  possible to specify a separate proxy server for different URL types, by
              prefixing the proxy server specifier with a URL specifier:

              Example:

                --proxy-server="https=proxy1:80;http=socks4://baz:1080"
                    Load https://* URLs using the HTTP proxy "proxy1:80". And load http://*
                    URLs using the SOCKS v4 proxy "baz:1080".

       --no-proxy-server
              Disables the proxy server.  Overrides any environment variables  or  settings  picked
              via the options dialog.

       --proxy-auto-detect
              Autodetect  proxy  configuration.   Overrides  any  environment variables or settings
              picked via the options dialog.

       --proxy-pac-url=URL
              Specify proxy autoconfiguration URL.  Overrides any environment variables or settings
              picked via the options dialog.

       --password-store=<basic|gnome|kwallet>
              Set the password store to use.  The default is to automatically detect based  on  the
              desktop  environment.  basic selects the built in, unencrypted password store.  gnome
              selects Gnome keyring.  kwallet selects (KDE) KWallet.  (Note that  KWallet  may  not
              work reliably outside KDE.)

       --version
              Show version information.

       As a GTK+ app, Google Chrome also obeys GTK+ command-line flags, such as --display.  See the
       GTK documentation for more:

              <http://library.gnome.org/devel/gtk/stable/gtk-running.html>

              <http://library.gnome.org/devel/gtk/stable/gtk-x11.html>

ENVIRONMENT
       Google Chrome obeys the following environment variables:

       all_proxy
              Shorthand for specifying all of http_proxy, https_proxy, ftp_proxy

       http_proxy, https_proxy, ftp_proxy
              The  proxy servers used for HTTP, HTTPS, and FTP.  Note: because Gnome/KDE proxy set‐
              tings may propagate into these variables in some terminals, this variable is  ignored
              (in  preference  for  actual  system proxy settings) when running under Gnome or KDE.
              Use the command-line flags to set these when you want to force their values.

       auto_proxy
              Specify proxy autoconfiguration.  Defined and empty autodetects; otherwise, it should
              be an autoconfig URL.  But see above note about Gnome/KDE.

       SOCKS_SERVER
              SOCKS proxy server (defaults to SOCKS v4, also set SOCKS_VERSION=5 to use SOCKS v5).

       no_proxy
              Comma separated list of hosts or patterns to bypass proxying.

FILES
       $HOME/.config/google-chrome
              Default directory for configuration data.

       $HOME/.cache/google-chrome
              Default  directory  for   cache   data.    (Why?    See   <http://standards.freedesk‐
              top.org/basedir-spec/latest/> .)

BUGS
       Bug tracker:

              http://code.google.com/p/chromium/issues/list

       Be sure to do your search within "All Issues" before reporting bugs, and be sure to pick the
       "Defect on Linux" template when filing a new one.

AUTHOR
       The Chromium team - <http://www.chromium.org>

                                                                                   google-chrome(1)