LoginSignup
0
0

More than 1 year has passed since last update.

RedHatEnterpriseLinux8 に VisualStudioCode インストール

Posted at

ここに書いてある事

RedHatEnterpriseLinux 8 に VisualStudioCodeをインストールした時のログ

パッケージでのインストール方法は以下の三つの方法があります。

  • rpmでのインストール
  • dnfでのインストール
  • snapでのインストール

何かと便利そうな dnf でインストールした時のログを残します。
参考ドキュメント:公式ドキュメントの RHEL, Fedora, and CentOS based distributions 

リポジトリの追加

[user01@rhel8 ~]$ sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
[sudo] user01 のパスワード:
[user01@rhel8 ~]$ sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'

パッケージのインストール

参考)インストールした時は、パッケージのダウンロードがすごく遅かったです。

[user01@rhel8 ~]$ sudo dnf check-update
[user01@rhel8 ~]$ sudo dnf install -y code
Updating Subscription Management repositories.
メタデータの期限切れの最終確認: 0:01:45 時間前の 2021年07月17日 15時15分38秒 に実施しました。
依存関係が解決しました。
===============================================================================================================
 パッケージ           Arch          バージョン                   リポジトリー                            サイズ
===============================================================================================================
インストール:
 code                 x86_64        1.58.2-1626302881.el8        code                                    102 M
依存関係のインストール:
 libXScrnSaver        x86_64        1.2.3-1.el8                  rhel-8-for-x86_64-appstream-rpms         31 k

トランザクションの概要
===============================================================================================================
インストール  2 パッケージ

ダウンロードサイズの合計: 102 M
インストール後のサイズ: 279 M
パッケージのダウンロード:
(1/2): libXScrnSaver-1.2.3-1.el8.x86_64.rpm                                     31 kB/s |  31 kB     00:00
(2/2): code-1.58.2-1626302881.el8.x86_64.rpm                                   261 kB/s | 102 MB     06:38
---------------------------------------------------------------------------------------------------------------
合計                                                                           261 kB/s | 102 MB     06:38
トランザクションの確認を実行中
トランザクションの確認に成功しました。
トランザクションのテストを実行中
トランザクションのテストに成功しました。
トランザクションを実行中
  準備             :                                                                                       1/1
  インストール中   : libXScrnSaver-1.2.3-1.el8.x86_64                                                      1/2
  インストール中   : code-1.58.2-1626302881.el8.x86_64                                                     2/2
  scriptletの実行中: code-1.58.2-1626302881.el8.x86_64                                                     2/2
  検証             : libXScrnSaver-1.2.3-1.el8.x86_64                                                      1/2
  検証             : code-1.58.2-1626302881.el8.x86_64                                                     2/2
Installed products updated.

インストール済み:
  code-1.58.2-1626302881.el8.x86_64                      libXScrnSaver-1.2.3-1.el8.x86_64

完了しました!
[user01@rhel8 ~]$


起動方法

コマンドで起動する場合

[user01@rhel8 ~]$ code
[user01@rhel8 ~]$ 

GUI(アイコン)から起動

何もしなくても、アイコンが出来てました。
ここから起動しましょう。

スクリーンショット 2021-07-17 15.26.56.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0