{
    分享网正式开通,我们为大家提供免费资源,欢迎大家踊跃投稿!

Windows下使用Scoop来管理应用程序的方法

使用 Scoop来管理Windows下应用可以免除管理员权限来安装应用,安装应用不怕下载到篡改后的应用程序。最重要的安装过程中无需人为操作,使用方便。

因为Scoop的应用程序大多数是从国外源站和Github上下载的,如果没有代理手段还请大家略过此篇笔记。

安装Scoop

安装Scoop之前,我们首先要解决的是访问Github的问题,这里提供一个修改Hosts的方法。

修改Hosts访问Github

首先**管理员**运行 `CMD`,输入 `notepad C:/windows/system32/drivers/etc/hosts`。

见下面一段添加到文件末尾:


        # GitHub Start
        52.74.223.119 github.com
        52.74.223.119 gist.github.com
        54.169.195.247 api.github.com
        185.199.111.153 assets-cdn.github.com
        199.232.96.133 raw.githubusercontent.com
        199.232.96.133 gist.githubusercontent.com
        199.232.96.133 cloud.githubusercontent.com
        199.232.96.133 camo.githubusercontent.com
        199.232.96.133 avatars0.githubusercontent.com
        199.232.96.133 avatars1.githubusercontent.com
        199.232.96.133 avatars2.githubusercontent.com
        199.232.96.133 avatars3.githubusercontent.com
        199.232.96.133 avatars4.githubusercontent.com
        199.232.96.133 avatars5.githubusercontent.com
        199.232.96.133 avatars6.githubusercontent.com
        199.232.96.133 avatars7.githubusercontent.com
        199.232.96.133 avatars8.githubusercontent.com
        199.232.96.133 user-images.githubusercontent.com
        185.199.109.154 github.githubassets.com
        # GitHub End
 

如果还不行,请自行百度解决。


        Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
        iwr -useb get.scoop.sh | iex
 

运行以上两段代码即可安装Scoop,Scoop的安装目录位于 C:\Users\用户名\scoop。

如果安装失败的话,删除该目录重新运行即可。

安装必备软件

这时候我们先来设置下代理,来提高下载软件的速度。


        scoop config proxy 127.0.0.1:7890
 

我这边使用的是clash的端口,请根据自己的软件自行设置。

接下来我们就需要安装必备软件了:首先运行 Scoop install git aria2,git是添加库所必须的软件,而 aria2主要用于多线程加速。

添加库

首先Scoop默认带的软件非常少,我们首先需要添加一些常用库:


        scoop bucket add extras
        scoop bucket add Java
        scoop bucket add dorado https://github.com/chawyehsu/dorado
 

extras包含了大多数国外非付费的软件,而dorado覆盖了常用的国内软件。

梭哈安装软件

以下是我个人安装的软件的梭哈安装命令:


        scoop install anki clash-for-windows dismplusplus electerm ffmpeg geekuninstaller go hmcl nodejs obs-studio oraclejre8 sudo telegram typora vscode wechat winfetch youtube-dl
 

使用说明

这里只介绍常用命令,具体还需要大家自己发掘。


        scoop install 软件名 #安装软件
        scoop uninstall 软件名 #卸载软件
        scoop search 软件名 #搜索软件
        scoop hold 软件名 #禁用指定软件更新
        scoop unhold 软件名 #启用指定软件更新
        scoop update * #更新全部软件
        scoop reset 软件名 #重置指定软件
 

另外,Scoop安装的软件大部分配置文件都存储在Scoop目录下的 persist文件夹内,如果换电脑可以事先备份此文件夹,在新电脑上软件都安装好,再复制进去。


资源均来自第三方,谨慎下载,前往第三方网站下载


米微资源分享网 , 版权所有丨本站资源仅限于学习研究,严禁从事商业或者非法活动!丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Windows下使用Scoop来管理应用程序的方法
喜欢 ()分享 (0)