7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Cygwinで使える裏ワザ vol.1

Last updated at Posted at 2014-08-05

Cygwinでは、cygstartというLinuxでいうopenコマンドが存在します。また、セットアップファイルには、いくつかのコマンドオプションが用意されていて、引数を渡すと、動作してくれます。(エイリアスとかも設定されているかもしれません

例えば、以下のコマンドは、セットアップファイルからwgetなどをインストールするコマンドになります。

$ cygstart /cygdrive/c/Cygwin/cygwinsetup -q -P wget, curl

ちなみに、cygdriveは、Cygwinの仮想ディレクトリではなく、本来のWindowsドライブにアクセスするポイントになります。

そして、wgetなどが使えるようになると、apt-cygというパッケージ管理スクリプトを使えるようになるので、便利です。

$ wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg

$ chomd +x apt-cyg

$ mv apt-cyg /usr/bin

ただし、powershellcmd上から実行する場合は、普通に実行ファイルを指定するだけでOKです。

> C:\Cygwin\cygwinsetup.exe -q -P wget
7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?