linux:visual_studio_code

Visual Studio Code on Fedora

$ sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
$ 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'
$ dnf check-update

Copr repo for PyCharm owned by phracek                                       2.8 kB/s | 3.6 kB     00:01    
Copr repo for PyCharm owned by phracek                                        24 kB/s |  44 kB     00:01    
Fedora 37 - x86_64                                                           5.0 kB/s | 4.8 kB     00:00    
Fedora 37 - x86_64                                                           1.9 MB/s |  82 MB     00:42    
Fedora 37 openh264 (From Cisco) - x86_64                                     346  B/s | 989  B     00:02    
Fedora Modular 37 - x86_64                                                    11 kB/s | 4.8 kB     00:00    
Fedora Modular 37 - x86_64                                                   601 kB/s | 3.8 MB     00:06    
Fedora 37 - x86_64 - Updates                                                  17 kB/s |  34 kB     00:01    
Fedora 37 - x86_64 - Updates                                                 1.0 MB/s | 6.9 MB     00:07    
Fedora Modular 37 - x86_64 - Updates                                         6.9 kB/s | 4.3 kB     00:00    
google-chrome                                                                2.8 kB/s | 1.3 kB     00:00    
google-chrome                                                                3.6 kB/s | 3.5 kB     00:00    
最速のミラーを確定しています (1 hosts).. done.=============================] 1.8 kB/s | 1.3 kB     00:00 ETA
Remi's RPM repository - Fedora 37 - x86_64                                   149  B/s | 833  B     00:05    
done.s RPM repository - Fedora 37 -100% [==================================] 1.0 kB/s | 1.3 kB     00:00 ETA
Remi's RPM repository - Fedora 37 - x86_64                                   303 kB/s | 1.6 MB     00:05    
Remi's Modular repository - Fedora 37 - x86_64                               261  B/s | 833  B     00:03    
Remi's Modular repository - Fedora 37 - x86_64                               142 kB/s | 752 kB     00:05    
RPM Fusion for Fedora 37 - Free - Updates                                    6.3 kB/s | 9.9 kB     00:01    
RPM Fusion for Fedora 37 - Free - Updates                                    124 kB/s | 320 kB     00:02    
RPM Fusion for Fedora 37 - Nonfree - NVIDIA Driver                            12 kB/s |  14 kB     00:01    
RPM Fusion for Fedora 37 - Nonfree - NVIDIA Driver                           7.6 kB/s |  15 kB     00:01    
RPM Fusion for Fedora 37 - Nonfree - Steam                                   7.6 kB/s |  14 kB     00:01    
RPM Fusion for Fedora 37 - Nonfree - Updates                                 6.6 kB/s |  14 kB     00:02    
RPM Fusion for Fedora 37 - Nonfree - Updates                                  38 kB/s |  72 kB     00:01    
Visual Studio Code                                                           1.8 MB/s |  32 MB     00:18    

cifs-utils.x86_64                                         7.0-1.fc37                                  updates
cifs-utils-info.x86_64                                    7.0-1.fc37                                  updates
dbus-broker.x86_64                                        33-1.fc37                                   updates
exiv2.x86_64                                              0.27.6-4.fc37                               updates
exiv2-libs.x86_64                                         0.27.6-4.fc37                               updates
gdcm.x86_64                                               3.0.21-2.fc37                               updates
javascriptcoregtk4.0.x86_64                               2.38.4-1.fc37                               updates
javascriptcoregtk4.1.x86_64                               2.38.4-1.fc37                               updates
javascriptcoregtk5.0.x86_64                               2.38.4-1.fc37                               updates
kernel.x86_64                                             6.1.10-200.fc37                             updates
kernel-core.x86_64                                        6.1.10-200.fc37                             updates
kernel-modules.x86_64                                     6.1.10-200.fc37                             updates
kernel-modules-extra.x86_64                               6.1.10-200.fc37                             updates
libX11.i686                                               1.8.4-1.fc37                                updates
libX11.x86_64                                             1.8.4-1.fc37                                updates
libX11-common.noarch                                      1.8.4-1.fc37                                updates
libX11-xcb.i686                                           1.8.4-1.fc37                                updates
libX11-xcb.x86_64                                         1.8.4-1.fc37                                updates
libffi.i686                                               3.4.4-1.fc37                                updates
libffi.x86_64                                             3.4.4-1.fc37                                updates
libgusb.x86_64                                            0.4.5-1.fc37                                updates
libphonenumber.x86_64                                     8.12.57-6.fc37                              updates
opusfile.x86_64                                           0.12-9.fc37                                 updates
python3-beautifulsoup4.noarch                             4.11.2-1.fc37                               updates
rpmautospec-rpm-macros.noarch                             0.3.2-1.fc37                                updates
tpm2-tss.x86_64                                           3.2.2-1.fc37                                updates
webkit2gtk4.0.x86_64                                      2.38.4-1.fc37                               updates
webkit2gtk4.1.x86_64                                      2.38.4-1.fc37                               updates
webkit2gtk5.0.x86_64                                      2.38.4-1.fc37                               updates

$ sudo dnf install code

Visual Studio Code                                                           2.2 MB/s |  32 MB     00:14    
メタデータの期限切れの最終確認: 0:00:24 時間前の 2023年02月10日 11時41分53秒 に実施しました。
依存関係が解決しました。
=============================================================================================================
 パッケージ          アーキテクチャー      バージョン                              リポジトリー        サイズ
=============================================================================================================
インストール:
 code                x86_64                1.75.1-1675893486.el7                   code                133 M

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

ダウンロードサイズの合計: 133 M
インストール後のサイズ: 386 M
これでよろしいですか? [y/N]: y
パッケージのダウンロード:
code-1.75.1-1675893486.el7.x86_64.rpm                                        3.1 MB/s | 133 MB     00:42    
-------------------------------------------------------------------------------------------------------------
合計                                                                         3.1 MB/s | 133 MB     00:42     
トランザクションの確認を実行中
トランザクションの確認に成功しました。
トランザクションのテストを実行中
トランザクションのテストに成功しました。
トランザクションを実行中
  準備             :                                                                                     1/1 
  インストール中   : code-1.75.1-1675893486.el7.x86_64                                                   1/1 
  scriptletの実行中: code-1.75.1-1675893486.el7.x86_64                                                   1/1 
  検証             : code-1.75.1-1675893486.el7.x86_64                                                   1/1 

インストール済み:
  code-1.75.1-1675893486.el7.x86_64                                                                          

完了しました!

初回起動時に日本語化を聞いてきます😊
[インストールして再起動]をクリックする。

Cloud Code for VS Code 拡張機能をインストールする  |  Google Cloud
Google Cloud Code - Visual Studio Marketplace
Ctrl + P を押して以下を貼り付けて Enter を押す。

ext install GoogleCloudTools.cloudcode

Firestore Security Rules and Indexes
toba/vsfire: Visual Studio Code extension for syntax highlighting, hover help and code completions with Firestore security rules and index definition files
Ctrl + P を押して以下を貼り付けて Enter を押す。

ext install toba.vsfire

公式: Fedora に .NET をインストールする - .NET | Microsoft Learn

$ dnf search dotnet-sdk

メタデータの期限切れの最終確認: 6 days, 23:11:56 時間前の 2023年07月17日 05時14分00秒 に実施しました。
=========================================== 名前 一致: dotnet-sdk ============================================
dotnet-sdk-6.0.x86_64 : .NET 6.0 Software Development Kit
dotnet-sdk-6.0-source-built-artifacts.x86_64 : Internal package for building .NET 6.0 Software Development Kit
dotnet-sdk-7.0.x86_64 : .NET 7.0 Software Development Kit
dotnet-sdk-7.0-source-built-artifacts.x86_64 : Internal package for building .NET 7.0 Software Development Kit

.NET SDK 7 をインストールする。

$ sudo dnf install dotnet-sdk-7.0

[sudo] tomoyan のパスワード:
メタデータの期限切れの最終確認: 0:58:13 時間前の 2023年07月24日 03時36分57秒 に実施しました。
依存関係が解決しました。
==============================================================================================================
 パッケージ                               アーキテクチャー バージョン                 リポジトリー      サイズ
==============================================================================================================
インストール:
 dotnet-sdk-7.0                           x86_64           7.0.109-1.fc38             updates            85 M
依存関係のインストール:
 aspnetcore-runtime-7.0                   x86_64           7.0.9-1.fc38               updates           7.3 M
 aspnetcore-targeting-pack-7.0            x86_64           7.0.9-1.fc38               updates           1.6 M
 dotnet-apphost-pack-7.0                  x86_64           7.0.9-1.fc38               updates           3.9 M
 dotnet-host                              x86_64           7.0.9-1.fc38               updates           197 k
 dotnet-hostfxr-7.0                       x86_64           7.0.9-1.fc38               updates           166 k
 dotnet-runtime-7.0                       x86_64           7.0.9-1.fc38               updates            24 M
 dotnet-targeting-pack-7.0                x86_64           7.0.9-1.fc38               updates           2.7 M
 dotnet-templates-7.0                     x86_64           7.0.109-1.fc38             updates           2.7 M
 netstandard-targeting-pack-2.1           x86_64           7.0.109-1.fc38             updates           1.3 M

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

ダウンロードサイズの合計: 129 M
インストール後のサイズ: 465 M
これでよろしいですか? [y/N]: y
パッケージのダウンロード:
(1/10): dotnet-apphost-pack-7.0-7.0.9-1.fc38.x86_64.rpm                       1.1 MB/s | 3.9 MB     00:03    
(2/10): aspnetcore-targeting-pack-7.0-7.0.9-1.fc38.x86_64.rpm                 451 kB/s | 1.6 MB     00:03    
(3/10): dotnet-hostfxr-7.0-7.0.9-1.fc38.x86_64.rpm                            710 kB/s | 166 kB     00:00    
(4/10): dotnet-host-7.0.9-1.fc38.x86_64.rpm                                   442 kB/s | 197 kB     00:00    
(5/10): aspnetcore-runtime-7.0-7.0.9-1.fc38.x86_64.rpm                        646 kB/s | 7.3 MB     00:11    
(6/10): dotnet-targeting-pack-7.0-7.0.9-1.fc38.x86_64.rpm                     1.1 MB/s | 2.7 MB     00:02    
(7/10): dotnet-templates-7.0-7.0.109-1.fc38.x86_64.rpm                        948 kB/s | 2.7 MB     00:02    
(8/10): netstandard-targeting-pack-2.1-7.0.109-1.fc38.x86_64.rpm              1.1 MB/s | 1.3 MB     00:01    
(9/10): dotnet-runtime-7.0-7.0.9-1.fc38.x86_64.rpm                            1.2 MB/s |  24 MB     00:19    
(10/10): dotnet-sdk-7.0-7.0.109-1.fc38.x86_64.rpm                             1.9 MB/s |  85 MB     00:44    
--------------------------------------------------------------------------------------------------------------
合計                                                                          2.5 MB/s | 129 MB     00:50     
トランザクションの確認を実行中
トランザクションの確認に成功しました。
トランザクションのテストを実行中
トランザクションのテストに成功しました。
トランザクションを実行中
  準備             :                                                                                      1/1 
  インストール中   : dotnet-host-7.0.9-1.fc38.x86_64                                                     1/10 
  インストール中   : aspnetcore-targeting-pack-7.0-7.0.9-1.fc38.x86_64                                   2/10 
  インストール中   : dotnet-apphost-pack-7.0-7.0.9-1.fc38.x86_64                                         3/10 
  インストール中   : dotnet-hostfxr-7.0-7.0.9-1.fc38.x86_64                                              4/10 
  インストール中   : dotnet-runtime-7.0-7.0.9-1.fc38.x86_64                                              5/10 
  インストール中   : aspnetcore-runtime-7.0-7.0.9-1.fc38.x86_64                                          6/10 
  インストール中   : dotnet-targeting-pack-7.0-7.0.9-1.fc38.x86_64                                       7/10 
  インストール中   : dotnet-templates-7.0-7.0.109-1.fc38.x86_64                                          8/10 
  インストール中   : netstandard-targeting-pack-2.1-7.0.109-1.fc38.x86_64                                9/10 
  インストール中   : dotnet-sdk-7.0-7.0.109-1.fc38.x86_64                                               10/10 
  scriptletの実行中: dotnet-sdk-7.0-7.0.109-1.fc38.x86_64                                               10/10 
  検証             : aspnetcore-runtime-7.0-7.0.9-1.fc38.x86_64                                          1/10 
  検証             : aspnetcore-targeting-pack-7.0-7.0.9-1.fc38.x86_64                                   2/10 
  検証             : dotnet-apphost-pack-7.0-7.0.9-1.fc38.x86_64                                         3/10 
  検証             : dotnet-host-7.0.9-1.fc38.x86_64                                                     4/10 
  検証             : dotnet-hostfxr-7.0-7.0.9-1.fc38.x86_64                                              5/10 
  検証             : dotnet-runtime-7.0-7.0.9-1.fc38.x86_64                                              6/10 
  検証             : dotnet-sdk-7.0-7.0.109-1.fc38.x86_64                                                7/10 
  検証             : dotnet-targeting-pack-7.0-7.0.9-1.fc38.x86_64                                       8/10 
  検証             : dotnet-templates-7.0-7.0.109-1.fc38.x86_64                                          9/10 
  検証             : netstandard-targeting-pack-2.1-7.0.109-1.fc38.x86_64                               10/10 

インストール済み:
  aspnetcore-runtime-7.0-7.0.9-1.fc38.x86_64        aspnetcore-targeting-pack-7.0-7.0.9-1.fc38.x86_64         
  dotnet-apphost-pack-7.0-7.0.9-1.fc38.x86_64       dotnet-host-7.0.9-1.fc38.x86_64                           
  dotnet-hostfxr-7.0-7.0.9-1.fc38.x86_64            dotnet-runtime-7.0-7.0.9-1.fc38.x86_64                    
  dotnet-sdk-7.0-7.0.109-1.fc38.x86_64              dotnet-targeting-pack-7.0-7.0.9-1.fc38.x86_64             
  dotnet-templates-7.0-7.0.109-1.fc38.x86_64        netstandard-targeting-pack-2.1-7.0.109-1.fc38.x86_64      

完了しました!

  • linux/visual_studio_code.txt
  • 最終更新: 2023/07/24 04:39
  • by ともやん