- Cygwin環境で使えるパッケージ管理ソフト
- Cygwinのsetup.iniは32bitと64bitでディレクトリの構造が変わっている
- 正式版のapt-cygはそれに対応していないので、0.57でforkしたバージョンを使う
~$ apt-cyg install [package name]
のような感じで使える
- Base/gawk
- Archive/bzip2
- Base/tar
- Net/wget
~$ gawk --version
Copyright (C) 1989, 1991-2013 Free Software Foundation.
~$ bzip2 --version
bzip2, a block-sorting file compressor. Version 1.0.6, 6-Sept-2010.
~$ tar --version
tar (GNU tar) 1.26
パッケージ化: Cygwin (1.26-1)
~$ wget --version
GNU Wget built on cygwin.
+digest +https +ipv6 -iri +large-file +nls +ntlm +opie +ssl/openssl
Wgetrc:
/etc/wgetrc (system)
ロケール: /usr/share/locale
コンパイル: x86_64-pc-cygwin-gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
-DLOCALEDIR="/usr/share/locale" -I.
-I/usr/src/ports/wget/wget-1.13.4-1/src/wget-1.13.4/src -I../lib
-I/usr/src/ports/wget/wget-1.13.4-1/src/wget-1.13.4/lib -ggdb -O2
-pipe
-fdebug-prefix-map=/usr/src/ports/wget/wget-1.13.4-1/build=/usr/src/debug/wget-1.13.4-1 -fdebug-prefix-map=/usr/src/ports/wget/wget-1.13.4-1/src/wget-1.13.4=/usr/src/debug/wget-1.13.4-1
リンク: x86_64-pc-cygwin-gcc -ggdb -O2 -pipe
-fdebug-prefix-map=/usr/src/ports/wget/wget-1.13.4-1/build=/usr/src/debug/wget-1.13.4-1 -fdebug-prefix-map=/usr/src/ports/wget/wget-1.13.4-1/src/wget-1.13.4=/usr/src/debug/wget-1.13.4-1 -liconv -lintl -lssl -lcrypto -lz -ldl -lz ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a
# Google Codeでシェルスクリプトが公開されてる
wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg
chmod +x apt-cyg
mv apt-cyg /usr/bin/
# パッケージ取得先を日本のミラーサーバに設定
# 0.57のfork版であれば、setup.iniの保存先が分けられる
# 32bit
~$ apt-cyg -m http://ftp.iij.ad.jp/pub/cygwin/x86/ update
# 64bit
~$ apt-cyg -m http://ftp.iij.ad.jp/pub/cygwin/x86_64/ update
apt-cyg version 0.57
Written by Stephen Jungels
apt-cyg --help
apt-cyg: Installs and removes Cygwin packages.
"apt-cyg install <package names>" to install packages
"apt-cyg remove <package names>" to remove packages
"apt-cyg update" to update setup.ini # パッケージの更新情報(setup.ini)を更新
"apt-cyg show" to show installed packages
"apt-cyg find <patterns>" to find packages matching patterns
"apt-cyg describe <patterns>" to describe packages matching patterns
"apt-cyg packageof <commands or files>" to locate parent packages
Options:
--mirror, -m <url> : set mirror
--cache, -c <dir> : set cache
--file, -f <file> : read package names from file
--noupdate, -u : don't update setup.ini from mirror
--help
--version