Windows11 scoopをインストールする方法

環境
エディション Windows 11 Pro
バージョン 22H2
システムの種類 64bit

操作方法
1.「powershell」を管理者として実行します。
以下のコマンドを実行します。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
> Set-ExecutionPolicy RemoteSigned -scope CurrentUser
> iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
> Set-ExecutionPolicy RemoteSigned -scope CurrentUser > iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
> Set-ExecutionPolicy RemoteSigned -scope CurrentUser
> iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

結果

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
PS C:\Users\user> Set-ExecutionPolicy RemoteSigned -scope CurrentUser
PS C:\Users\user> iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
Initializing...
Downloading ...
Extracting...
Creating shim...
Adding ~\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.
PS C:\Users\user>
PS C:\Users\user> Set-ExecutionPolicy RemoteSigned -scope CurrentUser PS C:\Users\user> iex (new-object net.webclient).downloadstring('https://get.scoop.sh') Initializing... Downloading ... Extracting... Creating shim... Adding ~\scoop\shims to your path. Scoop was installed successfully! Type 'scoop help' for instructions. PS C:\Users\user>
PS C:\Users\user> Set-ExecutionPolicy RemoteSigned -scope CurrentUser
PS C:\Users\user> iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
Initializing...
Downloading ...
Extracting...
Creating shim...
Adding ~\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.
PS C:\Users\user>

2.gitがない場合は、パッケージの追加やアップデートなどができないため、インストールします。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
PS C:\Users\user> scoop install git
PS C:\Users\user> git --version
git version 2.41.0.windows.1
PS C:\Users\user> scoop install git PS C:\Users\user> git --version git version 2.41.0.windows.1
PS C:\Users\user> scoop install git
PS C:\Users\user> git --version
git version 2.41.0.windows.1

3.ステータスを確認します
PS C:\Users\user> scoop status
WARN Scoop out of date. Run 'scoop update’ to get the latest changes.

scoopアップデートを行います
> scoop update
ステータスを確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
PS C:\Users\user> scoop status
Scoop is up to date.
Everything is ok!
PS C:\Users\user> scoop status Scoop is up to date. Everything is ok!
PS C:\Users\user> scoop status
Scoop is up to date.
Everything is ok!

 

Windows11

Posted by arkgame