在windows快速体验linux,借助Cygwin很不错的体验(占用空间小),win10应用商店目前集成ubuntu、fedora...系统。。。
00、安装源,直接下载的是init(仅仅是下载器)
01、选择安装目录及用户使用群体
02、设置国内Cygwin源add url
http://mirrors.163.com/cygwin/
http://mirrors.sohu.com/cygwin/
163源使用说明:http://mirrors.163.com/.help/cygwin.html
03、在选择需要安装软件建议安装
lynx
wget
openssh
注意:安装器既可以安装又可以 升级|卸载| 软件,很不错的,,,
04、安装第三方管理软件apt-cyg
https://github.com/transcode-open/apt-cyg
C:cygwin64in #把二级制apt-cyg丢进来
chmod a+x /bin/apt-cyg
apt-cyg mirror http://mirrors.163.com/cygwin #修改默认软件源
apt-cyg --help #查看帮助命令
$ apt-cyg --help NAME apt-cyg - package manager utility SYNOPSIS apt-cyg [operation] [options] [targets] DESCRIPTION apt-cyg is a package management utility that tracks installed packages on a Cygwin system. Invoking apt-cyg involves specifying an operation with any potential options and targets to operate on. A target is usually a package name, file name, URL, or a search string. Targets can be provided as command line arguments. OPERATIONS 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. mirror Set the mirror; a full URL to a location where the database, packages, and signatures for this repository can be found. If no URL is provided, display current mirror. cache Set the package cache directory. If a file is not found in cache directory, it will be downloaded. Unix and Windows forms are accepted, as well as absolute or regular paths. If no directory is provided, display current cache. OPTIONS --nodeps Specify this option to skip all dependency checks. --version Display version and exit.
例子
$ apt-cyg install gcc --2018-01-01 11:03:09-- http://mirrors.163.com/cygwin/x86_64/setup.bz2 正在解析主机 mirrors.163.com (mirrors.163.com)... 123.58.190.234, 123.58.190.237, 123.58.190.228, ... 正在连接 mirrors.163.com (mirrors.163.com)|123.58.190.234|:80... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:3458425 (3.3M) [application/octet-stream] 正在保存至: “setup.bz2” setup.bz2 100%[===================>] 3.30M 2.67MB/s 用时 1.2s 2018-01-01 11:03:10 (2.67 MB/s) - 已保存 “setup.bz2” [3458425/3458425]) Updated setup.ini Installing gcc Unable to locate package gcc
05、下载相关软件
download
https://cygwin.com/install.html
链接: https://pan.baidu.com/s/1pL85zMb 密码: d4th
链接: https://pan.baidu.com/s/1i5mxeQT 密码: rcgp