體驗cygwin紀實

  在windows快速體驗linux,藉助Cygwin很不錯的體驗(佔用空間小),win10應用商店目前集成ubuntu、fedora...系統。。。html

00、安裝源,直接下載的是init(僅僅是下載器)

 0一、選擇安裝目錄及用戶使用羣體

0二、設置國內Cygwin源add url

http://mirrors.163.com/cygwin/node

http://mirrors.sohu.com/cygwin/linux

163源使用說明:http://mirrors.163.com/.help/cygwin.htmlgit

0三、在選擇須要安裝軟件建議安裝

lynxgithub

wgetweb

opensshubuntu

注意:安裝器既能夠安裝又能夠 升級|卸載| 軟件,很不錯的,,,windows

 0四、安裝第三方管理軟件apt-cyg

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

C:\cygwin64\bin  #把二級制apt-cyg丟進來ssh

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

0五、下載相關軟件

download

https://cygwin.com/install.html

連接: https://pan.baidu.com/s/1pL85zMb 密碼: d4th

連接: https://pan.baidu.com/s/1i5mxeQT 密碼: rcgp

相關文章
相關標籤/搜索