首页 > 系统相关 >【好软推荐】Scoop - Windows快速软件安装指南

【好软推荐】Scoop - Windows快速软件安装指南

时间:2022-12-31 19:03:22浏览次数:78  
标签:git scoop Windows bucket Scoop add https 好软 安装

在平常生活中如果要安装像git、java、node这些环境的时都需要先去官网下载安装程序,点击安装,之后还需要配置,不仅过程麻烦,而且工具多了之后整理起来也相当不容易,配置也很杂,整个电脑就像被污染了一样。而scoop可以很好地解决这一问题,安装scoop后,只需要在命令行输入简单的一串命令即可安装你想要的软件。

比如我想安装git,只需要输入

$ scoop install git

然后就可以直接使用git命令了,是不是很简单。

如果我想卸载git,只需输入

$ scoop uninstall git

然后git就干干净净的从你的电脑中消失啦_

Scoop 介绍

Scoop是Windows的命令行安装程序,是一个强大的包管理工具。

官方网址: Scoop.sh

官方Github仓库: Scoop - GitHub

Scoop 安装

有梯子的话,尽可能按照官方的配置来。没有的话,参考“配置国内源”的操作

环境需求

  1. Windows 7 SP1 + / Windows Server 2008+
  2. PowerShell 5(或更高版本,包括PowerShell Core)和.NET Framework 4.5(或更高版本)
  3. 必须为您的用户帐户启用PowerShell,例如 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

安装

在PowerShell中运行以下命令,将scoop安装到其默认位置

# 配置安装环境
> Set-ExecutionPolicy RemoteSigned -scope CurrentUser
> $env:SCOOP='D:\Scoop'
> [Environment]::SetEnvironmentVariable('SCOOP',$env:SCOOP,'User')

# 设置scoop global环境变量
> $env:SCOOP_GLOBAL='D:\ScoopGlobalApps'
> [Environment]::SetEnvironmentVariable('SCOOP_GLOBAL',$env:SCOOP_GLOBAL,'User')

# 安装命令 (建议:使用全局magic上网运行最佳。先打开magic上网工具,然后重启shell,执行y安装命令)
> Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
# 或
> iwr -useb get.scoop.sh | iex
# GitHub访问不畅时,上面两条命令都会不成功。当然我们还有备选方案:配置hosts(配上访问raw.githubusercontent.com最快的ip到hosts中),然后再试试下面的命令
> iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1')  

# 安装完成后,输入下面命令验证是否成功(常见的命令可以通过此方法来查看)
> scoop help

关于如何加速访问Github:https://github.com/521xueweihan/GitHub520

Windows的hosts路径: C:\Windows\System32\drivers\etc\hosts

配置官方源

panda建议开启全局VPN模式

scoop bucket add main

scoop bucket add extras

scoop bucket add java

...

更多 Buckets 参见:buckets

配置国内源

由于GitHub在国内访问速度不理想,所以提供国内镜像作为备选方案

# 配置git环境
> scoop install git

# 安装aria2,加速下载
> scoop install aria2

# 配置是否使用aria2下载,false为禁用,true为启用
> scoop config aria2-enabled true

国内镜像加速方案

scoop bucket add main https://codechina.csdn.net/mirrors/ScoopInstaller/Main.git
scoop bucket add extras https://codechina.csdn.net/mirrors/lukesampson/scoop-extras.git
scoop bucket add nonportable https://codechina.csdn.net/mirrors/TheRandomLabs/scoop-nonportable
scoop bucket add nirsoft https://codechina.csdn.net/mirrors/kodybrown/scoop-nirsoft.git
scoop bucket add nerd-fonts https://codechina.csdn.net/mirrors/matthewjberger/scoop-nerd-fonts.git
scoop bucket add java https://codechina.csdn.net/mirrors/ScoopInstaller/Java.git
scoop bucket add versions https://codechina.csdn.net/mirrors/ScoopInstaller/Versions.git
scoop bucket add games https://codechina.csdn.net/mirrors/Calinou/scoop-games.git
scoop bucket add dorado https://gitee.com/chawyehsu/dorado

配置国内镜像源后,更新下scoop

scoop update

更多镜像参考:mirrors - CODE CHINA

Scoop 命令

# 查看全部指令
> scoop
# 查看对应指令的帮助文档
> scoop cache --help
# 清理全部缓存
> scoop cache rm *

# 查看已添加的bucket
> scoop bucket list

# 查看所有已知的bucket
> scoop bucket known

# 添加一个bucket
> scoop bucket add java

# 安装指定版本的软件,以freedownloadmanager为例安装6.18.0版本
> scoop install [email protected]

常见的bucket

  1. main - Default bucket for the most common (mostly CLI) apps
  2. extras - Apps that don’t fit the main bucket’s criteria
  3. games - Open source/freeware games and game-related tools
  4. nerd-fonts - Nerd Fonts
  5. nirsoft - A subset of the 250 Nirsoft apps
  6. java - Installers for Oracle Java, OpenJDK, Zulu, ojdkbuild, AdoptOpenJDK, 7. Amazon Corretto, BellSoft Liberica & SapMachine
  7. jetbrains - Installers for all JetBrains utilities and IDEs
  8. nonportable - Non-portable apps (may require UAC)
  9. php - Installers for most versions of PHP
  10. versions - Alternative versions of apps found in other buckets

Scoop 卸载

> scoop uninstall scoop

就这么简单

标签:git,scoop,Windows,bucket,Scoop,add,https,好软,安装
From: https://www.cnblogs.com/sleepyocean/p/17017084.html

相关文章

  • windows 安装mysql数据库
    本文推荐使用 windows安装zip包方式安装mysql数据库。5.7之后的版本没有data目录,懒得找解决方案,直接推荐使用5.6的社区版本。1.下载安装mysql官网,找到对应的目录,下载......
  • 软件安装——Windows gcc安装教程
    Windowsgcc安装教程1、下载MinGWhttps://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download2、安装点击继续一直下一步下载完后会打开......
  • lazarus linux/windows简易三层
    Lazarus下特别是linuxaarch64下使用简单的三层控件特别难找,综合已有的代码,在2022年最后一天,写了个简单的三层,其中服务端使用了UNIDAC和RealThinClientSDK,客户端简单封装......
  • 软件安装——Windows7 VmWare Tools
    VMwareWin7    这里有个坑,在安装VMtools的时候,是失败的,我原来以为是镜像的问题,Windows7镜像版本如果比较低,是安装不了VMtools的。在尝试更换高版本Windows7后,我......
  • VS2017: cannot open source file “Windows.h“
    在VS2017中打开一个VC++项目,#include行提示cannotopensourcefile"Windows.h"解决方法:右击Project->Properties->General->WindowsSDKVersion,选择10.0.xxxx......
  • windows本地安装git,并下载开源项目代码到本地
    1下载git安装包打开百度首页,输入git进行搜索,然后点击进入git官网下载对应系统的安装包。官网地址如下:https://git-scm.com/然后呢,你会发现,从官网下载真的很慢,可以复制下载......
  • 第05章 Windows版IntelliJ IDEA内置工具的使用
    第05章Windows版IntelliJIDEA内置工具的使用IntelliJIDEAIntelliJIDEA中内置了非常多的实用工具,日常开发中掌握了这些工具的使用会让开发变得更加顺畅。1.Wind......
  • windows server 2019 2012 server 2022 无线网卡驱动安装报错,无线网卡驱动不能安装, i
    windowsserver2019无线网络服务安装段落无效windowsserver2019无线网卡驱动安装报错,无线网卡驱动不能安装,inf服务安装段落无效 indowsserver2019安装无线驱......
  • Windows下jdk安装与卸载-超详细的图文教程
    jdk安装下载jdk由于现在主流就是jdk1.8,所以这里就下载jdk1.8进行演示。官方下载地址:https://www.oracle.com/java/technologies/downloads/#java8-windows。官方下载需......
  • All in one入门之All in one和三种PVE、ESXI、Windows Server方案
    前言Allinone前段时间,在某多多上花了446大洋弄了一台J4125准系统小主机,再花了一点钱买个杂牌msata和“全新”三星内存条,入坑了Allinone。Allinone是什么呢?从英文......