Install Scoop and lux(annie) under windows11
Article Directory
reference link
Scoop and Annie installation under Win11
1. Environment confirmation before installation
1. PowerShell version requirements
The scoop official website mentions that PowerShell must be greater than or equal to version 5.1
View the command "Get-Host | Select-Object Version" of the powershell version
PS C:\Users\chenky190417> Get-Host | Select-Object Version
Version
-------
5.1.22621.169
2.NET framework version
Requires .NET Framework 4.5 ( or higher), I installed version 6.0 here.
2. Install Scoop
Scoop is a command-line installer for Windows and a powerful package management tool. You can find relevant information about its project on github, the project URL.
1. Install scoop
The installation method is given through the interface below the scoop official website
See scoop installation readme for details
(1) Formulate an execution strategy to ensure that the execution of local scripts is allowed
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Execution strategy choice Y
(2) Install scoop
irm get.scoop.sh | iex
Or the following command also does not work:
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
All errors, the prompt is as follows:
Initializing...
Running the installer as administrator is disabled by default, see https://github.com/ScoopInstaller/Install#for-admin for details.
Abort.
Indicates that running the installer as an administrator is prohibited by default. See details for details . The solution is given here, using the command corresponding to the new admin
1.1 Install with the default installation path
I use the command "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.
Check whether the antivirus software allows the operation during the installation process, just allow it.
The default path after installation is C:\Users<YOUR USERNAME>\scoop, and the app installed through scoop is under C:\Users<YOUR USERNAME>\scoop\apps.
1.2 Install by specifying the installation path
If you want to go to the specified directory, see scoop installation readme for details
.\install.ps1 -RunAsAdmin -ScoopDir 'D:\Program Files\scoop' -ScoopGlobalDir 'D:\Program Files\ScoopApps'
- -ScoopDir: Set the current user software installation location D:\Program Files\scoop
- -ScoopGlobalDir: Set the global software installation location (meaning it should be available to all users)
You can specify these two locations according to your needs
The log information of the installation is as follows:
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. Verify that the installation is successful
Through the command "scoop help", you can see the help information after the installation is successful, as follows:
PS C:\Users\chenky190417> scoop help
Usage: scoop <command> [<args>]
Available commands are listed below.
Type 'scoop help <command>' 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. Uninstall scoop
Official link to uninstall scoop
Use the command "scoop uninstall scoop" to uninstall, this uninstall command will delete all the software under the scoop you configured, but when uninstalling, it will prompt that some paths are not accessed, as follows:
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”的访问被拒 绝。
Use "del .\scoop -Force" to forcefully delete scoop, and found that the buckets, cache, persist and shims folders under scoop have been deleted, but cannot be completely deleted under apps, the prompt message is as follows
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
After trying to restart the system, use the command "del .\scoop -Force" to force delete, still the above prompt, directly right mouse button to delete but it can be deleted
3. Install lux(annie)
1. Install lux
Project website: https://github.com/iawia002/lux
Start to install lux, which also installed ffmpeg and other software.
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. Download video with lux
Download example command:
lux "https://www.bilibili.com/video/BV1tf4y1t7ru/?p=4&spm_id_from=pageDriver&vd_source=3f19bdc2a5854868deb3a176235129a2"
After downloading, the video file is in the path of C:\Users<YOUR USERNAME>. If you want to download to the specified directory, -o
just add the folder path after the parameter. The log information of the downloaded video is as follows:
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