Cygwin使用之神器apt-cyg安装与使用

本文介绍如何使用apt-cyg在Cygwin中便捷安装软件,避免传统安装器的繁琐步骤。通过简单命令,轻松管理Cygwin环境,让软件安装变得简单高效。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在安装完cygwin后如果还想安装点其他软件,那该如何安装呢?我也曾经傻不拉几的的使用cygwin安装器重新安装,只是为了能在里面讲需要的软件安装进来,我只想说这样的方法的确OUT了!建议使用apt-cyg这个工具来安装需要的软件,操作起来So easy(网上很多相关的博客不是最新的,那样是无法安装成功的)!

一、安装步骤:

1. 安装apt-cyg:

lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
install apt-cyg /bin

2. 测试下吧:

apt-cyg install nano

如果出现安装的日志的话,那就要恭喜你了,你安装apt-cyg成功了


二、命令说明:

install
  Install package(s).

remove
  Remove package(s) from the system.

update
  Download a fresh copy of the master package list (setup.ini) from the
  server defined in setup.rc.

download
  Retrieve package(s) from the server, but do not install/upgrade anything.

show
  Display information on given package(s).

depends
  Produce a dependency tree for a package.

rdepends
  Produce a tree of packages that depend on the named package.

list
  Search each locally-installed package for names that match regexp. If no
  package names are provided in the command line, all installed packages will
  be queried.

listall
  This will search each package in the master package list (setup.ini) for
  names that match regexp.

category
  Display all packages that are members of a named category.


listfiles
  List all files owned by a given package. Multiple packages can be specified
  on the command line.

search
  Search for downloaded packages that own the specified file(s). The path can
  be relative or absolute, and one or more files can be specified.

searchall
  Search cygwin.com to retrieve file information about packages. The provided
  target is considered to be a filename and searchall will return the
  package(s) which contain this file.


三、参考链接

https://github.com/transcode-open/apt-cyg

****************************************华丽的分割线***********************************************

Cygwin使用记录:

1. Cygwin无法使用clear命令?解决办法:

apt-cyg install ncurses








评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值