MSYS2和CYGWIN包管理
MSYS2 pacman
pacman -S 软件名: 安装软件。也可以同时安装多个包,只需以空格分隔包名即可。
pacman -S --needed 软件名 1 软件名 2: 安装软件,但不重新安装已经是最新的软件。
pacman -Sy 软件名:安装软件前,先从远程仓库下载软件包数据库(数据库即所有软件列表)。
pacman -Sv 软件名:在显示一些操作信息后执行安装。
pacman -Sw 软件名: 只下载软件包,不安装。
pacman -U 软件名。pkg.tar.gz:安装本地软件包。
pacman -U http://www.example.com/repo/example.pkg.tar.xz: 安装一个远程包(不在 pacman 配置的源里面)。
apt-cyg
apt-cyg mirror http://mirrors.163.com/cygwin
apt-cyg update
apt-cyg listall xxpackage
apt-cyg install xxpackage