当前位置:网站首页>msys2常用配置
msys2常用配置
2022-07-25 05:36:00 【识途老码】
安装msys2
# Windows使用choco包管理器安装msys2
choco install msys2 -y
把msys2集成到Windows Terminal中
参考: https://blog.csdn.net/chenxizhan1995/article/details/109609823
将下方的json配置添加到profile.defaults.list中
{
// MSYS2
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6301}",
"name": "MSYS2",
"commandline": "C:\\tools\\msys64\\msys2_shell.cmd -msys -defterm -no-start",
"hidden": false,
"fontSize":12,
"tabTitle":"MSYS2",
// "colorScheme":"Campbell Powershell",
"colorScheme":"Campbell",
"startingDirectory":"%userprofile%",
"suppressApplicationTitle":true
}
pacman常用命令
参考: https://blog.csdn.net/mozart_cai/article/details/92385567
# 升级系统及所有已经安装的软件
pacman -Syu
# 安装软件。也可以同时安装多个包,只需以空格分隔包名即可
pacman -S 软件名
# 删除软件,同时删除本机上只有该软件依赖的软件
pacman -Rs 软件名
# 删除软件,同时删除不再被任何软件所需要的依赖
pacman -Ru 软件名
# 在仓库中搜索含关键字的软件包,并用简洁方式显示
pacman -Ssq 关键字
# 搜索已安装的软件包
pacman -Qs 关键字
# 查看某个软件包信息,显示软件简介,构架,依赖,大小等详细信息
pacman -Qi 软件名
# 列出软件仓库上所有的软件包组
pacman -Sg
# 查看某软件包组所包含的所有软件包
pacman -Sg 软件包组
#清理未安装的包文件,包文件位于 /var/cache/pacman/pkg/ 目录
pacman -Sc
#清理所有的缓存文件
pacman -Scc
配置proxy
参考: https://blog.csdn.net/omaidb/article/details/116019501
步骤和Linux配置proxy完全一致,msys2不支持socks5
编辑msys64下用户的.bashrc
添加proxy
export http_proxy="http://proxy.ibm.com:912"
export https_proxy="http://proxy.ibm.com:912"
export all="http://proxy.ibm.com:912"
然后source一下.bashrc即可.
msys2修改国内源
参考: https://mirrors.tuna.tsinghua.edu.cn/help/msys2/
源文件包括:
C:\tools\msys64\etc\pacman.d\mirrorlist.mingwServer = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw
C:\tools\msys64\etc\pacman.d\mirrorlist.mingw32Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686
C:\tools\msys64\etc\pacman.d\mirrorlist.mingw64Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64
C:\tools\msys64\etc\pacman.d\mirrorlist.ucrt64Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/ucrt64
C:\tools\msys64\etc\pacman.d\mirrorlist.clang32Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/clang32
C:\tools\msys64\etc\pacman.d\mirrorlist.clang64Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/clang64
C:\tools\msys64\etc\pacman.d\mirrorlist.msysServer = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$arch
修改完源之后,执行pacman -Sy刷新源.
msys2访问其他盘
# 访问E盘
cd /e/
# 访问E盘子目录
cd /c/opt
## 如果子目录有空格,必须用双引号引起来
cd "/c/Program Files"
边栏推荐
猜你喜欢

Application of hard coding and streaming integration scheme based on spice protocol in cloud games

同条网线电脑正常上网,手机连接wifi成功,但是无法访问互联网

Build keyword driven automated testing framework

微服务 - 远程调用(Feign组件)

JWT(json web token)

What content does the software test plan include and how to write it. Share test plan template

Implement is by yourself_ class

求求你别再用 System.currentTimeMillis() 统计代码耗时了,真的太 Low 了!

HTB-Granpa

Project management tools - project developer tools
随机推荐
LCP插件创建对等VLAN接口
微服务 - 网关Gateway组件
Guanghetong and Intel released the global version of 5g communication module
Automatic usage in SystemVerilog
Detailed explanation of stepn chain game system development mode (Sports money making mode)
Sword finger offer 05. replace spaces
ThreadLocal
弹性布局总结
typora+PicGo+阿里云OSS 搭建以及报错解决【转载】
Microservice gateway component
Bug --- redis deserialization failed
Exchange 2010 SSL certificate installation document
systemverilog中function和task区别
The price is 17300! Why does Huawei mate x face Samsung fold?
C100: smallest hevc visual IOT MCU
VPP cannot load up status interface
项目管理工具——项目开发者工具
Summary of common attributes of flex layout
项目管理工具——阿里云Projex介绍与实战
Programming hodgepodge (II)