最有效率的工作方式?Win10上安装包管理工具scoop

提出问题

我们常常为了找某个软件而东奔西走,甄选比较。又要费心安装到哪个目录下,如何才能运行效率最高等等。

这些问题都能通过包管理工具解决。

举例安装chrome浏览器,先运行命令:

scoop search chrome 

会得到多个版本:

PS C:Usersgaowei> scoop search chrome
'extras' bucket:
    chromium-dev-nosync (86.0.4185.0-r769185) --> includes 'chrome.exe'
    chromium-dev (87.0.4243.0-r800872) --> includes 'chrome.exe'
    chromium-nosync (67.0.3396.99-r550428) --> includes 'chrome.exe'
    chromium (84.0.4147.125) --> includes 'chrome.exe'
    dartium-dev (1.25.0-dev.6.0) --> includes 'chrome.exe'
    dartium (1.24.2) --> includes 'chrome.exe'
    googlechrome-beta (85.0.4183.83)
    googlechrome-canary (87.0.4244.0)
    googlechrome-dev (86.0.4238.2)
    googlechrome-portable (84.0.4147.135)
    googlechrome (84.0.4147.135)
    ungoogled-chromium-portable (84.0.4147.125) --> includes 'chrome.exe'
    ungoogled-chromium (84.0.4147.135-1) --> includes 'chrome.exe'

'main' bucket:
    chromedriver (85.0.4183.83)

选择安装稳定版的googlechrome (84.0.4147.135),则只需要一行命令:

scoop install googlechrome

一会就安装完毕:

PS C:Usersgaowei> scoop install googlechrome
Installing '7zip' (19.00) [64bit]
Loading 7z1900-x64.msi from cache
Checking hash of 7z1900-x64.msi ... ok.
Extracting 7z1900-x64.msi ... done.
Linking ~scoopapps7zipcurrent => ~scoopapps7zip19.00
Creating shim for '7z'.
Creating shortcut for 7-Zip (7zFM.exe)
'7zip' (19.00) was installed successfully!
Installing 'googlechrome' (84.0.4147.135) [64bit]
84.0.4147.135_chrome_installer.exe (59.0 MB) [==============================================] 100%
Checking hash of 84.0.4147.135_chrome_installer.exe ... ok.
Extracting dl.7z ... done.
Running installer script...
Linking ~scoopappsgooglechromecurrent => ~scoopappsgooglechrome84.0.4147.135
Creating shim for 'chrome'.
Creating shortcut for Google Chrome (chrome.exe)
'googlechrome' (84.0.4147.135) was installed successfully!

预备条件

现在powershell中运行命令:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

此处划重点,安装工作必须在这一步之后开展。

安装过程

切换到主目录下,比如:C:UsersGaowei,在powershell内输入下列代码:

Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

# or shorter
iwr -useb get.scoop.sh | iex
 

默认设置中程序将会被安装到 C:Usersscoop。如果是全局安装,即加上(--global) l则会装载入目录C:ProgramDatascoop。

安装后的测试

装载以下软件

scoop install sudo
sudo scoop install 7zip git openssh --global
scoop install aria2 curl grep sed less touch
scoop install python ruby go perl
展开阅读全文

页面更新:2024-05-16

标签:管理工具   效率   东奔西走   费心   全局   命令   浏览器   条件   重点   版本   代码   方式   测试   目录   程序

1 2 3 4 5

上滑加载更多 ↓
推荐阅读:
友情链接:
更多:

本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828  

© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号

Top