win系统中好用的东西——wsl和scoop

457 阅读2分钟

scoop

如题,win系统的软件安装神器–scoop

apt

在Ubuntu操作系统中,apt 是 Advanced Package Tool(高级软件包工具)的缩写,它是用于管理软件包的命令行工具。apt 可以帮助您搜索、安装、更新和卸载软件包,以及管理软件包仓库。它是Ubuntu中常用的软件包管理工具之一。 用人话翻译一下,就是以ubuntu为代表的debian系的软件包管理工具,比如在ubuntu下想安装python,只需要apt install python一句命令即可完成安装,而在win系统下,需要去官网下载,操作失误还需要自己额外配置环境,所以scoop的便捷性就体现出来了,在win下,只要安装配置好了scoop,只需要打开powershell,一句apt install python即可完成安装

scoop的安装下载及使用

安装下载

https://gitee.com/glsnames/scoop-installer
本文教程均来自于该仓库

打开powershell


//允许powershell中安装脚本的使用
Set-ExecutionPolicy RemoteSigned -scope CurrentUser //输入Y
//安装scoop
iwr -useb scoop.201704.xyz | iex
//安装git,scoop很多操作都需要git
scoop install git
//配置国内源
scoop config SCOOP_REPO "https://gitee.com/glsnames/scoop-installer"
//切换分支
scoop config scoop_branch develop
//添加bucket(存储桶,类似软件市场?)
scoop bucket add extras
scoop bucket add java
//添加第三方bucket
scoop bucket add dorado https://github.com/chawyehsu/dorado.git
scoop bucket add scoopet https://github.com/ivaquero/scoopet.git
scoop bucket add iszy https://github.com/ZvonimirSun/scoop-iszy.git
scoop bucket add echo https://github.com/echoiron/echo-scoop.git
scoop bucket add zapps https://github.com/kkzzhizhou/scoop-zapps.git
scoop bucket add tomato https://github.com/zhoujin7/tomato.git
scoop bucket add MorFans-apt https://github.com/Paxxs/Cluttered-bucket.git
scoop bucket add sushi https://github.com/kidonng/sushi.git
scoop bucket add aki https://github.com/akirco/aki-apps.git
scoop bucket add lemon https://github.com/hoilc/scoop-lemon.git
//更新
scoop update
//查询软件列表
scoop search
//软件列表非常多,终端看着很不方便,可以输入到一个文本文档中,记得在你想存放文本文档的目录中重新打开powershell
scoop search >> soft_list.txt
//安装想要的软件
scoop install QQ
scoop install wechat
scoop install python
scoop install oraclejdk //java
scoop install clash-for-windows
scoop install docker

wsl

子系统,用处就是可以打开cmd或者powershell,输入ubuntu之后即可直接使用ubuntu系统(无gui界面,想要的需要自己下载),不需要等vm笨重的开机

前置

本文来源于 https://www.yuque.com/gulujili/su7zwm/lhk7xgu2fqa3p035


控制面板 –> 程序 –> 开启或关闭 Windows 功能
将以下三条勾选,确定后会重启电脑
a. Windows 虚拟机监控程序平台
b. 适用于 Linux 的 WIndows 子系统
c. 虚拟机平台