PS C:\Users\13538> iwr-useb get.scoop.sh | iex Initializing... Downloading... Extracting... Creating shim... Adding ~\scoop\shims to your path. Scoop was installed successfully! Type'scoop help'for instructions.
我在安装的时候报错了
1 2 3 4
PS C:\Users\13538> iwr-useb get.scoop.sh | iex Initializing... PowerShell requires an execution policy in [Unrestricted, RemoteSigned, ByPass] to run Scoop. For example, to set the execution policy to 'RemoteSigned' please run 'Set-ExecutionPolicy RemoteSigned -Scope CurrentUser'. Abort.
PS C:\Users\13538> scoop search neofetch Results from local buckets...
Name Version Source Binaries ------------------------- neofetch 7.1.0 main
搜索全部软件scoop search 会直接展示所有软件
1 2 3 4 5 6 7 8 9 10 11 12 13
PS C:\Users\13538> scoop search Results from local buckets...
Name Version Source Binaries ------------------------- 1password-cli2.7.1 main 7zip 22.01 main 7zip19.00-helper19.00 main abc 1.0.0 main ack 3.6.0 main .......(省略) zoxide 0.8.3 main zstd 1.5.2 main
安装软件
命令格式为scoop install 软件名
1 2 3 4 5 6 7 8 9 10 11
PS C:\Users\13538> scoop install neofetch WARN Purging previous failed installation of neofetch. ERROR 'neofetch' isn't installed correctly. Removing older version (7.1.0). 'neofetch' was uninstalled. Installing 'neofetch' (7.1.0) [64bit] from main bucket neofetch (333.6 KB) [=========================================================================================] 100% Checking hash of neofetch ... ok. Linking ~\scoop\apps\neofetch\current => ~\scoop\apps\neofetch\7.1.0 Creating shim for 'neofetch'. 'neofetch' (7.1.0) was installed successfully!
PS C:\Users\13538> scoop update neofetch neofetch: 7.1.0 (latest version) Latest versions for all apps are installed! For more information try'scoop status'
更新全部软件scoop update *
1 2
PS C:\Users\13538> scoop update * Latest versions for all apps are installed! For more information try'scoop status'
即可升级所有软件
检查
查看软件状态是否为最新
1 2 3
PS C:\Users\13538> scoop status Scoop is up to date. Everything is ok!
检查scoop自身我的还真查出问题来了 有问题按提示操作就好
1 2 3 4 5 6 7 8 9 10 11
PS C:\Users\13538> scoop checkup WARN LongPaths support is not enabled. You can enable it by running: sudo Set-ItemProperty'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem'-Name'LongPathsEnabled'-Value1 (Requires 'sudo' command. Run 'scoop install sudo'if you don't have it.) ERROR 'Inno Setup Unpacker' is not installed! It's required for unpacking InnoSetup files. Please run 'scoop install innounp'. ERROR 'dark' is not installed! It's required for unpacking installers created with the WiX Toolset. Please run 'scoop install dark' or 'scoop install wixtoolset'. WARN Found 3 potential problems. ......(按提示操作) PS C:\Users\13538> scoop checkup No problems identified!
PS C:\Users\13538> scoop bucket add DEV-tools"https://github.com/anderlli0053/DEV-tools" Checking repo... OK The DEV-tools bucket was added successfully.
查看已经添加的仓库
1 2 3 4 5 6
PS C:\Users\13538> scoop bucket list
Name Source Updated Manifests -------------------------- extras https://github.com/ScoopInstaller/Extras 2022/10/78:47:101692 main https://github.com/ScoopInstaller/Main 2022/10/78:47:151095