Install Cygwin and the package manager apt-cyg in Windows

Source: Internet
Author: User

Cygwin can use Bash and various powerful tools in the unix environment in Windows, which is a required tool for Linux administrators who do not want to use Linux Desktop. In Cygwin, apt-cyg is similar to the Linux package management tool, which allows you to conveniently install various software over the network. 1. Download and install: http://cygwin.com/setup.exe2 Select the installation source and software. To install apt-cyg, install the following software package: wgettargawkbzip2 3. After Cygwin is installed, open Cygwin Terminal to install apt-cyg Package Manager: wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg -P/binchmod.exe + x/bin/apt-cyg installation source is ftp://mirror.mcs.anl.gov , Set to Netease image source. Apt-cyg-m http://mirrors.163.com/cygwin/ Use apt-cyg to install software: apt-cyg update # update source apt-cyg install ping-u # Use the parameter u to update source Working directory is/setupMirror is every time http://mirrors.163.com/cygwin/ Installing pingFound package ping -- 09:59:20 -- http://mirrors.163.com/cygwin/ /Release/ping/ping-1.0-1.tar.bz2 is parsing host mirrors.163.com (mirrors.163.com)... disconnect, 123.58.173.106 is connecting mirrors.163.com (mirrors.163.com) | disconnect |: 80... connected. An HTTP request has been sent and is waiting for response... 200 OK length: 8352 (8.2 K) [application/octet-stream] is being saved: export ping-1.0-1.tar.bz2 "100% [====================================== ==========>] 8,352 --. -K/s at 0.1 s 09:59:21 (64.1 KB/s)-saved “ping-1.0-1.tar.bz2 "[8352/8352]) Unpacking... package ping requires the following packages, installing: cygwinPackage cygwin is already installed, skippingPackage ping installed Cygwin install procps, including uptime/free/top and other commonly used tools: bin/prockill.exe bin/procps.exe sbin/sysctl.exe usr/bin/free.exe usr/bin/pgrep.exe usr/bin/pkill.exe usr/bin/pmap.exe usr/bin/pwdx.exe usr/bin/skill.exe usr /bin/slabtop.exe usr/bin/snice.exe usr/bin/tload.exe usr/bin/top.exe usr/bin/uptime.exe usr/bin/vmstat.exe usr/bin/w.exe usr/bin/watch.exe doscommand the output code is GBK, cygwin under the default UTF-8, both display garbled problem set Cygwin encoding for GBK: export LANG = "zh_CN.GBK" other settings: alias ls = "ls -- color = auto" export PS1 = "\ [\ e] 0; \ w \ a \] \ [\ e [32m \] \ u @ \ h: \ [\ e [33m \] \ w \ [\ e [0m \] \ $"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.