重慶分公司,新征程啟航
為企業提供網站建設、域名注冊、服務器等服務
為企業提供網站建設、域名注冊、服務器等服務
Win11下Scoop與Annie安裝
scoop使用指南
一、安裝前環境確認 1.PowerShell版本要求scoop官網中提到PowerShell要大≥5.1版本
查看powershell 版本的命令“Get-Host | Select-Object Version”
PS C:\Users\chenky190417>Get-Host | Select-Object Version
Version
-------
5.1.22621.169
2.NET框架版本需要.NET 框架 4.5(或更高版本),我這里安裝了6.0版本。
二、安裝ScoopScoop是Windows的命令行安裝程序,是一個強大的包管理工具。可以在github上找到其項目的相關信息,項目網址。
github網址
碼云網址
1. 安裝scoop通過scoop官網下面的界面給出了安裝方法
詳見scoop安裝readme
(1) 制定執行策略,保證允許本地腳本的執行
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
執行策略選擇Y
(2) 安裝scoop
irm get.scoop.sh | iex
或下面的命令也不行:
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
都出錯,提示如下:
Initializing...
Running the installer as administrator is disabled by default, see https://github.com/ScoopInstaller/Install#for-admin for details.
Abort.
表示作為管理員運行installer默認是被禁止的,詳見細節,這里給出了解決方案,采用新admin對應的命令
1.1 用默認安裝路徑的方式安裝我采用命令“iex “& {$(irm get.scoop.sh)} -RunAsAdmin””
PS C:\Users\chenky190417>iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
Initializing...
Downloading...
Extracting...
Creating shim...
Adding ~\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.
安裝過程殺毒軟件是否允許操作,允許就可以了。
安裝后默認的路徑是C:\Users
如果要按照到指定目錄,詳見scoop安裝readme
.\install.ps1 -RunAsAdmin -ScoopDir 'D:\Program Files\scoop' -ScoopGlobalDir 'D:\Program Files\ScoopApps'
可根據自己的需求來指定這兩個按照位置
安裝的日志信息如下:
PS C:\Users\chenky190417>.\install.ps1 -RunAsAdmin -ScoopDir 'D:\Program Files\scoop' -ScoopGlobalDir 'D:\Program Files\ScoopApps'
Initializing...
Downloading...
Extracting...
Creating shim...
Adding D:\Program Files\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.
2. 驗證是否安裝成功通過命令“scoop help”,安裝成功可以看到help信息,如下:
PS C:\Users\chenky190417>scoop help
Usage: scoop[]
Available commands are listed below.
Type 'scoop help' to get more help for a specific command.
Command Summary
------- -------
alias Manage scoop aliases
bucket Manage Scoop buckets
cache Show or clear the download cache
cat Show content of specified manifest.
checkup Check for potential problems
cleanup Cleanup apps by removing old versions
config Get or set configuration values
create Create a custom app manifest
depends List dependencies for an app, in the order they'll be installed
download Download apps in the cache folder and verify hashes
export Exports installed apps, buckets (and optionally configs) in JSON format
help Show help for a command
hold Hold an app to disable updates
home Opens the app homepage
import Imports apps, buckets and configs from a Scoopfile in JSON format
info Display information about an app
install Install apps
list List installed apps
prefix Returns the path to the specified app
reset Reset an app to resolve conflicts
search Search available apps
shim Manipulate Scoop shims
status Show status and check for new app versions
unhold Unhold an app to enable updates
uninstall Uninstall an app
update Update apps, or Scoop itself
virustotal Look for app's hash or url on virustotal.com
which Locate a shim/executable (similar to 'which' on Linux)
3. 卸載scoop卸載scoop的官方鏈接
用命令“scoop uninstall scoop”卸載,這個卸載命令,會刪除你配置的scoop下面的所有軟件,但卸載的時候提示提示沒有對一些路徑訪問被拒絕,如下:
PS C:\Users\chenky190417>scoop uninstall scoop
WARN This will uninstall Scoop and all the programs that have been installed with Scoop!
Are you sure? (yN): y
Uninstalling '7zip'
Removing shim '7z.shim'.
Removing shim '7z.exe'.
Removing shim '7zFM.shim'.
Removing shim '7zFM.exe'.
Removing shim '7zG.shim'.
Removing shim '7zG.exe'.
WARN Couldn't remove ~\scoop\apps\7zip: 無法刪除項 C:\Users\chenky190417\scoop\apps\7zip\22.01\Codecs: 對路徑“Codecs”的訪問被拒絕。.Exception
Uninstalling 'ffmpeg'
Removing shim 'ffmpeg.shim'.
Removing shim 'ffmpeg.exe'.
Removing shim 'ffplay.shim'.
Removing shim 'ffplay.exe'.
Removing shim 'ffprobe.shim'.
Removing shim 'ffprobe.exe'.
WARN Couldn't remove ~\scoop\apps\ffmpeg: 無法刪除項 C:\Users\chenky190417\scoop\apps\ffmpeg\5.1.2\fonts: 對路徑“fonts”的訪問被拒絕。.Exception
Uninstalling 'lux'
Removing shim 'lux.shim'.
Removing shim 'lux.exe'.
WARN Couldn't remove ~\scoop\apps\lux: 無法刪除項 C:\Users\chenky190417\scoop\apps\lux\current: 對路徑“current”的訪問被拒絕。.Exception
Couldn't remove ~\scoop\apps: 無法刪除項 C:\Users\chenky190417\scoop\apps\7zip\22.01\Codecs: 對路徑“Codecs”的訪問被拒 絕。
用“del .\scoop -Force”強制刪除scoop,發現刪掉了scoop下buckets、cache、persist和shims文件夾,但apps下無法徹底刪除,提示信息如下
PS C:\Users\chenky190417>del scoop
確認
C:\Users\chenky190417\scoop 處的項具有子項,并且未指定 Recurse 參數。如果繼續,所有子項均將隨該項刪除。是否確實要繼續?
[Y] 是(Y) [A] 全是(A) [N] 否(N) [L] 全否(L) [S] 暫停(S) [?] 幫助 (默認值為“Y”): y
del : 無法刪除項 C:\Users\chenky190417\scoop\apps\7zip\22.01\Codecs: 對路徑“Codecs”的訪問被拒絕。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (Codecs:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DeleteSymbolicLinkFailed,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無法刪除項 C:\Users\chenky190417\scoop\apps\7zip\22.01\Formats: 對路徑“Formats”的訪問被拒絕。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (Formats:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DeleteSymbolicLinkFailed,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無法刪除目錄 C:\Users\chenky190417\scoop\apps\7zip\22.01,因為該目錄不為空。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (22.01:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無法刪除項 C:\Users\chenky190417\scoop\apps\7zip\current: 對路徑“current”的訪問被拒絕。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (current:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DeleteSymbolicLinkFailed,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無法刪除目錄 C:\Users\chenky190417\scoop\apps\7zip,因為該目錄不為空。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (7zip:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無法刪除項 C:\Users\chenky190417\scoop\apps\ffmpeg\5.1.2\fonts: 對路徑“fonts”的訪問被拒絕。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (fonts:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DeleteSymbolicLinkFailed,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無法刪除目錄 C:\Users\chenky190417\scoop\apps\ffmpeg\5.1.2,因為該目錄不為空。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (5.1.2:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無法刪除項 C:\Users\chenky190417\scoop\apps\ffmpeg\current: 對路徑“current”的訪問被拒絕。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (current:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DeleteSymbolicLinkFailed,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無法刪除目錄 C:\Users\chenky190417\scoop\apps\ffmpeg,因為該目錄不為空。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (ffmpeg:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無法刪除項 C:\Users\chenky190417\scoop\apps\lux\current: 對路徑“current”的訪問被拒絕。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (current:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DeleteSymbolicLinkFailed,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無法刪除目錄 C:\Users\chenky190417\scoop\apps\lux,因為該目錄不為空。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (lux:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無法刪除目錄 C:\Users\chenky190417\scoop\apps,因為該目錄不為空。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (apps:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無法刪除目錄 C:\Users\chenky190417\scoop,因為該目錄不為空。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Users\chenky190417\scoop:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
嘗試重啟系統后用命令“del .\scoop -Force”強制刪除,還是上面的提示,直接鼠標右鍵刪除卻可以刪除掉
三、安裝 lux(annie) 1.安裝lux項目網址:https://github.com/iawia002/lux
開始安裝lux,這過程也安裝了ffmpeg等軟件。
PS C:\Users\chenky190417>scoop install lux
Installing '7zip' (22.01) [64bit] from main bucket
7z2201-x64.msi (1.8 MB) [=====================================================================================] 100%
Checking hash of 7z2201-x64.msi ... ok.
Extracting 7z2201-x64.msi ... done.
Linking D:\Program Files\scoop\apps\7zip\current =>D:\Program Files\scoop\apps\7zip\22.01
Creating shim for '7z'.
Creating shim for '7zFM'.
Creating shim for '7zG'.
Creating shortcut for 7-Zip (7zFM.exe)
Persisting Codecs
Persisting Formats
Running post_install script...
'7zip' (22.01) was installed successfully!
Notes
-----
Add 7-Zip as a context menu option by running: "D:\Program Files\scoop\apps\7zip\current\install-context.reg"
Installing 'ffmpeg' (5.1.2) [64bit] from main bucket
ffmpeg-5.1.2-full_build.7z (45.2 MB) [========================================================================] 100%
Checking hash of ffmpeg-5.1.2-full_build.7z ... ok.
Extracting ffmpeg-5.1.2-full_build.7z ... done.
Linking D:\Program Files\scoop\apps\ffmpeg\current =>D:\Program Files\scoop\apps\ffmpeg\5.1.2
Creating shim for 'ffmpeg'.
Creating shim for 'ffplay'.
Creating shim for 'ffprobe'.
Persisting fonts
'ffmpeg' (5.1.2) was installed successfully!
Installing 'lux' (0.16.0) [64bit] from main bucket
lux_0.16.0_Windows_64-bit.zip (10.8 MB) [=====================================================================] 100%
Checking hash of lux_0.16.0_Windows_64-bit.zip ... ok.
Extracting lux_0.16.0_Windows_64-bit.zip ... done.
Linking D:\Program Files\scoop\apps\lux\current =>D:\Program Files\scoop\apps\lux\0.16.0
Creating shim for 'lux'.
'lux' (0.16.0) was installed successfully!
2. 使用lux下載視頻下載示例命令:
lux "https://www.bilibili.com/video/BV1tf4y1t7ru/?p=4&spm_id_from=pageDriver&vd_source=3f19bdc2a5854868deb3a176235129a2"
下載后視頻文件在C:\Users-o
參數,后面帶上文件夾路徑即可,下載視頻的日志信息如下:
PS C:\Users\chenky190417>lux -o D:\download "https://www.bilibili.com/video/BV1tf4y1t7ru/?p=4&spm_id_from=pageDriver&vd_source=3f19bdc2a5854868deb3a176235129a2"
Site: 嗶哩嗶哩 bilibili.com
Title: 目標檢測 YOLOv5 開源代碼項目調試與講解實戰【土堆 x 布爾藝數】 P4 如何利用 YOLOv5 進行預測(一)
Type: video
Stream:
[16-12] -------------------
Quality: 流暢 360P hev1.1.6.L120.90
Size: 85.98 MiB (90156863 Bytes)
# download with: lux -f 16-12 ...
85.98 MiB / 85.98 MiB [======================================================================] 6.56 MiB p/s 100.00% 13s
Merging video parts into D:\download\目標檢測 YOLOv5 開源代碼項目調試與講解實戰【土堆 x 布爾藝數】 P4 如何利用 YOLOv5 進行預測(一).mp4
你是否還在尋找穩定的海外服務器提供商?創新互聯www.cdcxhl.cn海外機房具備T級流量清洗系統配攻擊溯源,準確流量調度確保服務器高可用性,企業級服務器適合批量采購,新人活動首月15元起,快前往官網查看詳情吧