DEV Community

Yuta Goto
Yuta Goto

Posted on

WSL2にGoogle Chromeをインストールする

これは .ごっ!のアドベントカレンダー の12日目の記事です。

Microsoftのドキュメントの通りの通りに進めます。

WSL で Linux GUI アプリを実行する | Microsoft Learn

WSL で Linux GUI アプリの実行がどのようにサポートされるかについて説明します。

learn.microsoft.com

前提としてWSL2が有効になっていることとします。

インストール

$ cd /tmp
$ sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
$ sudo dpkg -i google-chrome-stable_current_amd64.deb # 安定したバージョンを取得
$ sudo apt install --fix-broken -y # パッケージを修正
$ sudo dpkg -i google-chrome-stable_current_amd64.deb # パッケージを構成
$ google-chrome --version
Google Chrome 119.0.6045.159
Enter fullscreen mode Exit fullscreen mode

起動するときは google-chrome コマンドを実行します。

image.png (564.9 kB)

アップデート

一度削除してから、再度 wget で取得してインストールを実行します。

sudo apt --purge remove google-chrome-stable
Enter fullscreen mode Exit fullscreen mode

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More