Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #104

Open
wants to merge 372 commits into
base: master
Choose a base branch
from
Open

Test #104

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
372 commits
Select commit Hold shift + click to select a range
08be8a0
Fixed misspelling.
kou1okada Apr 12, 2015
04f6cbe
Update README.md
kou1okada Apr 14, 2015
fc5b3fe
FIXED: If here documents are used, 0<${1:-/dev/stdin} can not work.
kou1okada Apr 16, 2015
ccdb48a
Changed arguments for hash_check from the pipe to the here documents.
kou1okada Apr 16, 2015
5b61ba2
FIXED: In some cases, version was not split correctly by the `package…
kou1okada Apr 16, 2015
2ecade0
Performance improvement: proxy_auto became to cache a result.
kou1okada Apr 19, 2015
1ba7c33
FIXED: MAnantharaman reported that `get_codepage` returns a "CP850." …
kou1okada May 24, 2015
efaf71b
FIXED: a mistyping.
kou1okada May 24, 2015
9f26da5
Bugfix: The `dist-upgrade` sub-command fails `rebaseall` when the cyg…
kou1okada Jun 28, 2015
96f17ce
Add `--quiet` and `--verbose` options.
kou1okada Aug 2, 2015
999924c
Add help about `--quiet` and `--verbose` options.
kou1okada Aug 2, 2015
92d183e
Add `--no-header` option.
kou1okada Aug 4, 2015
56f5601
Refactoring about the default value of $OPT_VERBOSE_LEVEL.
kou1okada Aug 4, 2015
f4d1d62
Refactoring: A redundant argument of `package_db-register` function w…
kou1okada Aug 15, 2015
84168f0
`dist-upgrade` subcommand became no longer create desktop and start m…
kou1okada Aug 29, 2015
96e7a89
FIXED: Resume download became to be used at install subcommand.
kou1okada Nov 6, 2015
893c1a8
Update README.md
kou1okada Dec 27, 2015
62bd94b
Merge commit '893c1a89550d81cbc6ad49b982685f5fc7e1baaf'
kou1okada Jan 5, 2016
94d214f
FIXED: mktemp makes a temporary file in tmpdir at apt-cyg-benchmark-p…
kou1okada Jan 5, 2016
4de0f73
Add a derivation to README.md
kou1okada Jan 30, 2016
fc9cc95
Add and modify links for some forks in README.md
kou1okada Feb 1, 2016
a249138
Update README.md
kou1okada Feb 5, 2016
b9febfb
Update README.md
kou1okada Feb 5, 2016
2b475f0
Add `packages-total-count` subcommand.
kou1okada Feb 5, 2016
b07c68a
Add `packages-total-size` subcommand.
kou1okada Feb 5, 2016
fb24e97
Add `packages-cached-count` subcommand.
kou1okada Feb 5, 2016
985ac67
Add `packages-cached-size` subcommand.
kou1okada Feb 5, 2016
9b8178d
Add a link to a fork in README.md
kou1okada Feb 6, 2016
a0110bf
Update README.md
kou1okada Feb 11, 2016
6ff8933
Add `repair-acl` subcommand.
kou1okada Feb 12, 2016
3b70550
Fix the ACL problem for Windows 10 Japanese edition.
kou1okada Feb 12, 2016
ab5134a
workaround to avoid warning for INSTALLED.DB 3
laris Sep 26, 2016
f6a0881
Update apt-cyg
laris Sep 27, 2016
6d8ed5b
Support PACKAGE_DB version 3.
kou1okada Sep 27, 2016
f8450e6
Merge branch [pull request #16](https://github.com/kou1okada/apt-cyg/…
kou1okada Sep 27, 2016
a3b85c4
Add `source`, `download` and `mirror` subcommands.
kou1okada Oct 5, 2016
ec7513b
Add verbosefor cache.
kou1okada Oct 5, 2016
db4a764
Improoved performance for `packageof` subcommand.
kou1okada Oct 5, 2016
3c466e3
Add `--ag` option.
kou1okada Oct 5, 2016
f201f93
Mirror and cache dir is now passed to setup. Now setup.exe will use s…
FlipB Oct 30, 2016
fc20ce0
Fixed: `w_cache` seems to be misspell about `cache_string`.
kou1okada Nov 1, 2016
31196a4
Add `--use-own-conf` option.
kou1okada Nov 1, 2016
15cc722
Fixed: join(): drop linebreak from tail.
kou1okada Nov 1, 2016
6e1ffcf
Merge branch 'master' into FlipB-master
kou1okada Nov 1, 2016
eb43136
Merge pull request #1 from kou1okada/FlipB-master
FlipB Nov 1, 2016
7004da9
Merge pull request #17 from FlipB/master
kou1okada Nov 2, 2016
0c3fc29
Bugfix: The process of `remove` subcommand was not precise.
kou1okada Dec 31, 2016
16ee422
s/apt-get/apt-cyg
rasa Jan 9, 2017
816b66b
Merge pull request #19 from rasa/patch-1
kou1okada Jan 9, 2017
b6a8986
Force LF download of script using .gitattributes
lucasvc Feb 28, 2017
be2117b
Merge pull request #21 from lucasvc/master
kou1okada Feb 28, 2017
2fb8cce
Changed invokation of setup.exe to include current cygwin instance root.
Aug 10, 2017
8960c3d
FIXED: In this part, it seems that sed does not provide helpful effects.
kou1okada Aug 16, 2017
2e97789
Merge branch 'FlipB-master'
kou1okada Aug 16, 2017
af97456
Add `listfiles` subcommand.
kou1okada Oct 6, 2017
e5eec73
Fixed: `listfiles` subcommand becomes to print the absolute path.
kou1okada Oct 6, 2017
709db4f
Added `get-proxy` subcommand.
kou1okada Apr 6, 2018
409c150
Updated `README.md`.
kou1okada Apr 6, 2018
57dcd46
Make apt-cyg update work
Apr 23, 2018
2aaa87c
Fix `update-setup` subcommand has been forgetting to verify the signa…
kou1okada Oct 3, 2018
346a752
Update version string.
kou1okada Nov 7, 2018
9818e5e
Update README.md
E3V3A Nov 16, 2018
6939693
Update README.md
kou1okada Nov 16, 2018
ac5c654
Merge branch 'E3V3A-patch-1'
kou1okada Nov 16, 2018
ef08fe8
Fix a misspelling.
kou1okada Nov 16, 2018
212a4e3
Update README.md
kou1okada Nov 16, 2018
56a9e8c
Improve help message.
kou1okada Nov 16, 2018
1716593
Update README.md
kou1okada Nov 16, 2018
4829ecd
Update README.md
kou1okada Nov 16, 2018
88c5616
Improve the description of usage in help and README.md.
kou1okada Nov 16, 2018
d9ae7d8
Add `ls-categories` sub command.
kou1okada Nov 20, 2018
d34efdf
Fix misspelling.
kou1okada Nov 20, 2018
a423ed9
Fix a missed alignment of indent.
kou1okada Nov 20, 2018
e3c13d2
Modify placeholder rules for help.
kou1okada Nov 19, 2018
d5f71c0
Create known_problems.md
E3V3A Nov 22, 2018
23467bc
Update README.md
E3V3A Nov 22, 2018
874857f
Create other_forks.md
E3V3A Nov 22, 2018
108a992
Update README.md
E3V3A Nov 22, 2018
5bf9735
Update README.md
E3V3A Nov 22, 2018
206b33e
Update README.md
E3V3A Nov 22, 2018
9ca3de8
Update README.md
E3V3A Nov 22, 2018
85cf5c8
Update README.md
E3V3A Nov 22, 2018
6257273
Update `README.md`.
kou1okada Nov 25, 2018
6141156
Update `README.md`.
kou1okada Nov 25, 2018
1e4e99b
Update `README.md`.
kou1okada Nov 25, 2018
1028169
Update `README.md`.
kou1okada Nov 25, 2018
8e787c5
Merge branch 'E3V3A-patch-2' into rearrange-pr-34
kou1okada Nov 25, 2018
a7759e5
Merge branch 'issue-30'
kou1okada Nov 28, 2018
be081f2
Update document for considering issue #37.
kou1okada Jan 18, 2019
4498eca
Improve performance under the Active Directory environment (see issue…
kou1okada Feb 15, 2019
97317e0
Use original Cygwin setup preferences and repo folder (issue #24).
kou1okada Feb 18, 2019
ec6d94b
Add warning if mirror is unofficial.
kou1okada Feb 20, 2019
84a7901
Update to re-enable `--mirror` and `--cache` option.
kou1okada Mar 8, 2019
9360472
Merge branch 'issue-40' for closing issue #40.
kou1okada Mar 8, 2019
4d4b3f2
Merge branch 'issue-24' for issue #24.
kou1okada Mar 8, 2019
9e5867d
Bugfix: `usage` includes recursive command substitution.
kou1okada Mar 8, 2019
73c4186
Refine `cp2utf8` and `utf82cp`.
kou1okada Mar 8, 2019
562cde2
Refactoring: Simplify 'mirrors-list' subcommand.
kou1okada Mar 8, 2019
8d92f6c
Refactoring: Clean up indents and blank lines.
kou1okada Mar 8, 2019
bd76730
Modularize the routines for bash completion.
kou1okada Mar 8, 2019
7f1fd6f
Improve the debug information for bash completion.
kou1okada Mar 8, 2019
3b907e7
Bug fixing: subcommand could not be completed.
kou1okada Mar 8, 2019
3708975
Use $COMSPEC and $SYSTEMROOT to call Windows system commands.
kou1okada Mar 10, 2019
caea32c
Improve `show` subcommand.
kou1okada Mar 11, 2019
ef4b0bd
Add apt-mark features.
kou1okada Mar 11, 2019
a5f796c
Bugfix: `/etc/bash_completion.d/apt-cyg` must declare global variables.
kou1okada Mar 11, 2019
b7acbae
Improvements to call Windows system commands.
kou1okada Mar 18, 2019
c518bc8
Merge branch 'issue-42'
kou1okada Mar 18, 2019
8bb5c7c
Add `call` subcommand.
kou1okada Mar 18, 2019
0934dd6
Update `other_forks.md`.
kou1okada Mar 20, 2019
30d5afe
Bugfix: wrong separator location for `listfiles` subcommand.
kou1okada Mar 20, 2019
984eb8f
Merge branch 'patch-1' of https://github.com/mettacrawler/apt-cyg int…
kou1okada Mar 22, 2019
a578389
Improve compatibility for GnuPG v1 and v2.
kou1okada Mar 22, 2019
e8c8e12
Merge branch 'mettacrawler-patch-1'
kou1okada Mar 22, 2019
6bfb2fd
Rewrite error and warning with hhs_embed.
kou1okada Mar 22, 2019
6353b02
Add `time` subcommand.
kou1okada Mar 22, 2019
51c72dc
Refactoring: replace `join` to `join_str` function.
kou1okada Mar 29, 2019
739b5e4
Refactoring: replace `join_to_head` to `join_str_uniq` function.
kou1okada Mar 29, 2019
5d40759
Bugfix: `get_archives_list` can not find prev and test packages.
kou1okada Mar 29, 2019
467870d
Update README.md
hashimaziz1 Mar 30, 2019
7c739f4
Update README.md
hashimaziz1 Mar 30, 2019
98c14aa
Merge branch 'Kaos-Industries-patch-1' into Kaos-Industries-master
kou1okada Mar 31, 2019
46c1b04
Update `README.md` about the most recommended way to deploy.
kou1okada Mar 31, 2019
af42b6d
Merge pull request #1 from kou1okada/Kaos-Industries-master
hashimaziz1 Mar 31, 2019
a920e4a
Merge pull request #43 from Kaos-Industries/master
kou1okada Apr 1, 2019
853cf23
Tuning for thresholds about debug messages.
kou1okada Apr 7, 2019
038e8fb
Add warning for missing current directory.
kou1okada Apr 7, 2019
155e35b
Add support for gpg2
hoshsadiq Apr 17, 2019
eacd9ee
Merge pull request #46 from hoshsadiq/patch-1
kou1okada Apr 17, 2019
c3b4d00
Support for multiple installation of cygwin.
kou1okada May 5, 2019
cbeeec3
For issue #49: Change behavior of `describe` subcommand.
kou1okada Jun 7, 2019
449915b
Refactoring: Simplifying command.
kou1okada Jun 9, 2019
a28c3d7
Merge pull request #50 from kou1okada/issue-49
kou1okada Jun 9, 2019
fd7a1b6
Add new command "category" from original apt-cyg
sukucorp Jun 10, 2019
b73b293
add `ls-pkg-with-category` subcommand.
kou1okada Jun 11, 2019
549df20
Reimprelemt `category` subcommand using `ls-pkg-with-category`.
kou1okada Jun 11, 2019
9f0d396
Merge branch 'sukucorp-master'
kou1okada Jun 11, 2019
305947b
Use `/etc/setup/setup.rc` directly for `setup.exe`.
kou1okada Jun 11, 2019
a3ec2b1
Fix behavior for exact matching.
kou1okada Jun 20, 2019
1c8bc48
Merge pull request #54 from kou1okada/issue-53
kou1okada Jun 20, 2019
4d438de
Add `filesearch` subcommand.
kou1okada Oct 1, 2019
214e3a5
fixed typos in upstream script
cslycord Oct 25, 2019
db0c0d9
modification to use wget for updating
cslycord Oct 25, 2019
abaa978
Merge pull request #58 from cslycord/typo
kou1okada Oct 30, 2019
bf2f52a
Split upgrade-self to with-git and with-wget(for fallback).
kou1okada Oct 31, 2019
4f536a5
Rearranging indents.
kou1okada Oct 31, 2019
82a5e2e
Refactoring: Use $SCRIPT_PATH and $SCRIPT_DIR.
kou1okada Dec 2, 2019
bec4bc1
Add a TODO.
kou1okada Dec 2, 2019
2ac942b
Merge branch 'upgrade-self-with-wget'
kou1okada Dec 2, 2019
e44069a
Rearranging indents.
kou1okada Dec 2, 2019
9e7d45f
Revived --use-setuprc option for backward compatibility.
kou1okada Dec 2, 2019
77b06f5
Merge pull request #61 from kou1okada/issue-47
kou1okada Dec 20, 2019
e9f9cad
Bugfix: PATH of `$setup` is incorrect at `apt-cyg dist-upgrade`.
kou1okada Dec 25, 2019
d83a2d5
Bugfix: iconv can not recognize CP20127(=US-ASCII).
kou1okada Dec 29, 2019
4c1b9cd
Merge pull request #64 from kou1okada/issue-63
kou1okada Feb 5, 2020
302d469
Improve performance for get_codepage.
kou1okada Mar 22, 2020
3a041d8
Improve performance for mirror_to_mirrordir.
kou1okada Mar 22, 2020
ed4f558
Improve performance for findworkspace.
kou1okada Mar 22, 2020
54d0715
Improve performance for determining command path.
kou1okada Mar 22, 2020
f5eede5
Improve performance for proxy_auto.
kou1okada Mar 22, 2020
020c4a9
Improve performance for detecting wget options.
kou1okada Mar 22, 2020
ca90987
Improve performance for verbosefor.
kou1okada Mar 22, 2020
9c4dcf7
Improve performance by using named reference.
kou1okada Mar 22, 2020
6238251
Improve performance by using alternative mktemp.
kou1okada Mar 22, 2020
98f57e0
Update pubring.asc SUM&FPR
a-ueda-lab Mar 23, 2020
b591e72
Improve performance for current_cygarch.
kou1okada Mar 24, 2020
a58fca1
Improve performance for `mkdir -p`.
kou1okada Mar 24, 2020
fd42084
Rewrite comment of pubring.asc with result of `apt-cyg key-list`.
kou1okada Mar 24, 2020
d7ca074
Merge pull request #66 from kou1okada/a-ueda-lab-master
kou1okada Mar 24, 2020
b6bbe51
Improve performance for fetch_trustedkeys.
kou1okada Mar 24, 2020
cc150db
Improve performance with caching `cp2utf8 /etc/setup/setur.rc`.
kou1okada Mar 24, 2020
905911a
Improve performance for findworkspace.
kou1okada Mar 24, 2020
de3e617
Brushup for verbose system.
kou1okada Mar 25, 2020
367fb5b
Improve performance for initialization about wget.
kou1okada Mar 25, 2020
bbbc903
Bugfix: bash_completion.
kou1okada Mar 25, 2020
ff16199
Improve DEBUG_COMPLETION.
kou1okada Mar 27, 2020
d5611cb
Reconstruct download_and_verify.
kou1okada Mar 27, 2020
9b08900
Bugfix: naming rule of cachefile is incorrect in `set_cachefile`.
kou1okada Apr 25, 2020
bb85851
Refactoring about cachevars.
kou1okada Apr 25, 2020
1ad6e89
Improve performance for updating "setup.ini".
kou1okada Apr 25, 2020
9c407e2
Add `mirrors-list-online` subcommand.
kou1okada Apr 25, 2020
9642502
Remove a gpg key of Cygwin Ports from TRUSTEDKEYS.
kou1okada Apr 27, 2020
1d1f735
Merge pull request #68 from kou1okada/remove-cygport-gpgkey
kou1okada Apr 27, 2020
0c0b871
Add `mirrors-list-long` subcommand.
kou1okada May 24, 2020
1308fa1
Update help and `README.md`.
kou1okada May 24, 2020
502aa3d
Bugfix for issue #70.
kou1okada Jul 14, 2020
a128698
Merge pull request #71 from kou1okada/issue-70
kou1okada Jul 14, 2020
5a458c4
Merge pull request #72 from kou1okada/issue-69
kou1okada Jul 14, 2020
622bcf6
Update `README.md`.
kou1okada Jul 14, 2020
ba78db4
Merge branch 'master' into improve-performance
kou1okada Jul 14, 2020
dcaa7aa
Merge branch 'improve-performance'
kou1okada Jul 18, 2020
60ff087
README.md: archetecture -> architecture
resistancelion Jul 25, 2020
f1241f9
Typo: archetecture -> architecture
kou1okada Sep 22, 2020
8f8844a
Merge pull request #74 from kou1okada/resistancelion-patch-1
kou1okada Sep 22, 2020
b7ff2ef
Skip to get trusted key when use `--no-verify` option.
kou1okada Sep 22, 2020
a7523e4
Add `filelist` subcommand.
kou1okada Nov 26, 2020
cf88260
Fix typo
kou1okada Mar 1, 2021
288b645
Merge branch 'file-list'
kou1okada Mar 1, 2021
5e98676
Add `mirror-source` and `web` subcommands.
kou1okada Mar 1, 2021
9d8110a
Support the case of that cygport is included in patch.
kou1okada Mar 17, 2021
fa100dd
Check that iconv command exists
sebthom Apr 1, 2021
81a4c1f
Bugfix: fix typo
kou1okada Apr 2, 2021
8cfa930
Merge pull request #75 from sebthom/patch-1
kou1okada Apr 2, 2021
8245327
Rename subcommand `web` to `homepage`.
kou1okada Apr 2, 2021
4798a5c
Merge pull request #76 from kou1okada/web
kou1okada Apr 2, 2021
f212f39
Bugfix: can't use backquotes in the here document.
kou1okada Apr 8, 2021
1a578ba
Merge pull request #78 from kou1okada/fix-issue-77
kou1okada Apr 8, 2021
b4216ad
Bugfix: The filelist subcommand does not display anything
kou1okada Apr 22, 2021
ec7d1f4
Update README.md about apt-cyg needed iconv
koedoyoshida May 5, 2021
d56f9ef
Merge pull request #79 from koedoyoshida/Update-README.md-apt-cyg-nee…
kou1okada May 5, 2021
e337e06
Update README.md
kou1okada May 6, 2021
f358e60
Scrap and building for subcommands.
kou1okada Feb 10, 2022
579f84b
Update GPG Key hash
ThexXTURBOXx Mar 4, 2022
28e6210
Merge pull request #84 from ThexXTURBOXx/patch-1
kou1okada Mar 4, 2022
e47cee7
Update hash (again)
ThexXTURBOXx Mar 6, 2022
e5c6806
Merge pull request #85 from ThexXTURBOXx/master
kou1okada Mar 7, 2022
6fb2bd8
Removing Stargazers forks links
Murazaki Apr 1, 2022
a9446e7
Merge pull request #86 from Murazaki/patch-1
kou1okada Apr 1, 2022
a14cd4b
Refactoring: package_db-version_check
kou1okada Apr 5, 2022
e8f1be2
Remove --charch.
kou1okada Apr 5, 2022
0497643
Remove current_cygarch().
kou1okada Apr 5, 2022
ef8950d
Refactoring: Use redirect instead of command substitution for checkin…
kou1okada Apr 5, 2022
a2758ac
Support setup.{zst,xz}.
kou1okada Apr 5, 2022
9cfc2cf
Support .zst for `/etc/setup/install.db`.
kou1okada Apr 5, 2022
ae00036
Merge pull request #87 from kou1okada/improve-perfoemance-20220404
kou1okada May 26, 2022
091f386
Bugfix: upgrade-self-with-git does not use proxy_setup.
kou1okada May 26, 2022
47fd11e
Bugfix: Cygwin 3.3.6 can't execute "${COMSPEC//\\//}".
kou1okada Oct 18, 2022
7b27397
Merge pull request #89 from kou1okada/issue-88
kou1okada Oct 18, 2022
0f49c03
Consider the `depends2:` field in `setup.ini`.
kou1okada Nov 7, 2022
0e176bd
Merge pull request #91 from kou1okada/issue-90
kou1okada Nov 9, 2022
172b242
Bugfix: Type p of postinstall scripts must not be marked .done.
kou1okada Dec 2, 2022
6b33866
Merge pull request #94 from kou1okada/issue-92
kou1okada Dec 2, 2022
9187117
Bugfix: /etc/postinstall/*.dash are not executed.
kou1okada Dec 2, 2022
d524536
Merge pull request #95 from kou1okada/issue-93
kou1okada Dec 2, 2022
fe3d07f
Add `--benchmark-timeout` option.
kou1okada Apr 28, 2023
5251647
Merge pull request #98 from kou1okada/issue-96
kou1okada Apr 28, 2023
da909ec
Prefer gpg2 over gpg.
yak1ex Jul 23, 2023
84b6eae
Fix unintentional behavior in setupini_download().
yak1ex Jul 23, 2023
5d824b0
Add --mirror-index|-M option to choose a mirror.
yak1ex Jul 23, 2023
0f517be
Merge pull request #100 from yak1ex/prefer_gpg2_over_gpg
kou1okada Jul 24, 2023
2e23ac8
Remove old signature of `setup.ini`.
kou1okada Jul 24, 2023
a9e6700
Bugfix: Fallbacks for fail of extract `setup.ini` is not worked.
kou1okada Jul 24, 2023
0b27526
Merge branch 'yak1ex-fix_maybe_unintentional_behavior_in_setupini_dow…
kou1okada Jul 24, 2023
bbca830
Update `README.md`.
kou1okada Jul 24, 2023
3a3d447
Brush up about the -mirror-index option.
kou1okada Jul 24, 2023
ad419bb
Merge branch 'yak1ex-choose_one_from_multiple_mirrors'
kou1okada Aug 16, 2023
4e53733
Improve error messages:
kou1okada Feb 14, 2024
cd5f0f8
Update sha512sum of `pubring.asc`.
kou1okada Mar 18, 2024
36336df
Merge pull request #106 from kou1okada/issue-105
kou1okada Mar 18, 2024
7821087
Merge pull request #107 from kou1okada/issue-104
kou1okada Mar 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apt-cyg text eol=lf
229 changes: 219 additions & 10 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,32 +1,241 @@
apt-cyg
=======

apt-cyg is a command-line installer for Cygwin which cooperates with Cygwin Setup and uses the same repository. The syntax is similar to apt-get. Usage examples:
apt-cyg is a command-line installer for [Cygwin](http://cygwin.com/) which cooperates with Cygwin Setup and uses the same repository. The syntax is similar to apt-get.

* "apt-cyg install <package names>" to install packages
* "apt-cyg remove <package names>" to remove packages
* "apt-cyg update" to update setup.ini
* "apt-cyg show" to show installed packages
* "apt-cyg find <pattern(s)>" to find packages matching patterns
* "apt-cyg describe <pattern(s)>" to describe packages matching patterns
* "apt-cyg packageof <commands or files>" to locate parent packages
Usage
-----

### Command line

apt-cyg [<options>] [<subcommand> [<parameters> ...]]

### Subcommands

| Subcommand | Description |
|:------- |:----------- |
| `install <package names>` | to install packages |
| `remove <package names>` | to remove packages |
| `update` | to update *setup.ini* |
| `show` | to show installed packages |
| `find <patterns>` | to find packages matching patterns |
| `describe <patterns>` | to describe packages matching patterns |
| `packageof <command or file names> ...` | to locate parent packages |
| `pathof {cache\|mirror\|mirrors\|mirrordir\|cache/mirrordir\|setup.ini}` | to show path |
| `key-add <files> ...` | to add keys contained in \<files\> |
| `key-del <keyids> ...` | to remove keys \<keyids\> |
| `key-list` | to list keys |
| `key-finger` | to list fingerprints |
| `upgrade-self` | to upgrade apt-cyg |
| `depends <package names> ...` | to show forward dependency information for packages with depth. |
| `rdepends <package names> ...` | to show reverse dependency information for packages with depth. |
| `completion-install` | to install completion. |
| `completion-uninstall` | to uninstall completion. |
| `mirrors-list` | to show list of mirrors. |
| `mirrors-list-long` | to show list of mirros with full details. |
| `mirrors-list-online` | to show list of mirrors from online. |
| `benchmark-mirrors <urls> ...` | to benchmark mirrors. |
| `benchmark-parallel-mirrors <urls> ...` | to benchmark mirrors in parallel. |
| `benchmark-parallel-mirrors-list` | to benchmark mirrors-list in parallel. |
| `scriptinfo` | to show script information. |
| `show-packages-busyness <package names> ...` | to show if packages are busy or not. |
| `dist-upgrade` | to upgrade all packages that is installed. This subcommand uses **`setup-*.exe`** |
| `update-setup` | to update setup.exe |
| `setup [<params> ...]` | to call setup.exe |
| `packages-total-count` | count number of total packages from setup.ini |
| `packages-total-size [<pattern of section>]` | count size of total packages from setup.ini |
| `packages-cached-count` | count number of cached packages in cache/mirrordir. |
| `packages-cached-size` | count size of cached packages in cache/mirrordir. |
| `repair-acl` | to repair the windows ACL (Access Control List). |
| `repair-postinstall` | Repair postinstall scripts. |
| `source <package names> ...` | download source archive. |
| `mirror-source <package names> ...` | download the source package into the current cache/mirrordir as mirror. |
| `download <package names> ...` | download the binary package into the current directory. |
| `mirror <package names> ...` | download the binary package into the current cache/mirrordir as mirror. |
| `browse-homepage-with-mirror-source [<package names> ...]` | Browse homepages of packages with mirror-source. |
| `browse-homepage [<package names> ...]` | Browse homepages of packages. |
| `browse-summary [<package names> ...]` | Browse summaries of packages. |
| `listfiles <package names> ...` | List files 'owned' by package(s). |
| `get-proxy` | Get proxies for eval. |
| `ls-categories` | List categories. |
| `ls-pkg-with-category` | List packages with category. |
| `category <category>` | List all packages in given \<category\>.|
| `setuprc-get <section>` | Get section from **`setup.rc`**. |
| `set-cache [<cache>]` | Set cache. |
| `set-mirror [<mirrors> ...]` | Set mirrors. Note: `setup-x86{,_64}.exe` uses all of them but currently `apt-cyg` uses the first one only. |
| `mark-auto [<packages> ...]` | Mark the given packages as automatically installed. |
| `mark-manual [<packages> ...]` | Mark the given packages as manually installed. |
| `mark-showauto` |Print the list of automatically installed packages. |
| `mark-showmanual` | Print the list of manually installed packages. |
| `call [<internal_function> [<args> ...]]` | Call internal function in apt-cyg. |
| `time [<internal_function> [<args> ...]]` | Report time consumed to call internal function in apt-cyg. |
| `filelist [<package>]` | File list like apt-file list. |
| `filesearch [<pattern>]` | File search like apt-file search. |

### Options

| Option | Description |
|:------ |:----------- |
| `--ag` | use the silver searcher (currently work only at packageof subcommand) |
| `--benchmark-timeout <duration>` | Truncate items that take longer than \<duration\> when benchmarking |
| `--ignore-case`, `-i` | ignore case distinctions for `<patterns>` |
| `--force-remove` | force remove
| `--force-fetch-trustedkeys` | force fetch trustedkeys |
| `--force-update-packageof-cache` | force update packageof cache |
| `--no-verify`, `-X` | Don't verify setup.ini signatures |
| `--no-check-certificate` | Don't validate the server's certificate |
| `--no-update-setup` | Don't update setup.exe
| `--no-header` | Don't print header |
| `--proxy`, `-p {auto\|inherit\|none\|<url>}` | set proxy (default: ${APT_CYG_PROXY:-auto}) |
| `--completion-get-subcommand` | get subcommand (for completion internal use) |
| `--completion-disable-autoupdate` | disable completion autoupdate |
| `--max-jobs`, `-j <n>` | Run \<n\> jobs in parallel |
| `--mirror`, `-m <url>` | set mirror
| `--mirror-index`, `-M <n>` | choose mirror from last-mirror list. \<n\> is 0-based index in last-mirror. |
| `--cache`, `-c <dir>` | set cache |
| `--file`, `-f <file>` | read package names from \<file\> |
| `--noupdate`, `-u` | don't update setup.ini from mirror |
| `--ipv4`, `-4` | wget prefer ipv4 |
| `--no-progress` | hide the progress bar in any verbosity mode |
| `--quiet`, `-q` | quiet (no output) |
| `--verbose`, `-v` | verbose |
| `--help` | Display help and exit |
| `--version` | Display version and exit |

Requirements
------------

`apt-cyg` requires the Cygwin default environment and the additional *Cygwin* packages:

`wget`, `ca-certificates`, `gnupg`, `libiconv`

In **32bit** version of cygwin, `wget` requires an additional setting for the `ca-certificates` package.
Choose one of below settings.

# 1. Create symbolic link for the default ca-directory of wget.
ln -s /usr/ssl /etc/

# or
# 2. Set ca-directory paramete in '/etc/wgetrc'.
echo "ca-directory = /usr/ssl/certs" >> /etc/wgetrc

# or
# 3. Set ca-directory paramete in '~/.wgetrc'.
echo "ca-directory = /usr/ssl/certs" >> ~/.wgetrc

Remarks:
Above additional settings for wget is not required for 64bit version of cygwin.
But, as of 2014-01-17, perhaps `ca-certificates` package makes fail of certification in 64bit version of cygwin with Windows 8. See below:

* Known Problem / [2014-01-17: ca-certificates package is not setup correct at x86_64 with Windows 8.](#2014-01-17-ca-certificates-package-is-not-setup-correct-at-x86_64-with-windows-8)

Quick start
-----------

The most recommended way to deploy this fork can be seen from a link below:
* New features / [Upgrade apt-cyg](#upgrade-apt-cyg)

apt-cyg is a simple script. Once you have a copy, make it executable:

# chmod +x /bin/apt-cyg
chmod +x /bin/apt-cyg

Optionally place apt-cyg in a bin/ folder on your path.

Then use apt-cyg, for example:

# apt-cyg install nano
apt-cyg install nano

New features
------------

### dist-upgrade support

This fork has achieved `dist-upgrade` command by using `setup-x86.exe` and `setup-x86_64.exe` as a backend.
Note that all of running tasks on the cygwin will be killed before starting dist-upgrade.

### Multiple hash algorithms support

After the middle of 2015-03, the cygwin project changed the hash algorithm for checking tarball from md5 to sha512.
But, as of 2015-04-09, the cygwinports project seems still using md5.
This fork is available for both of cygwin and cygwinports by supporting algorithm of md5, sha1, sha224, sha256 and sha512.

### Signature check and key management by GnuPG

The default action of apt-cyg has been changed to check signature for 'setup.ini'.
Of course you can also avoid signature check by using `--no-verify` or `-X` options.
Public keys of cygwin and cygwinports are already registered to trusted keys of embeded.
If you want to use some other public keys, please use `key-*` subcommands.

### Upgrade apt-cyg

If apt-cyg is under Git version control, this fork can upgrade itself by `upgrade-self` subcommand.
Therefore, the most recommended way to deploy this fork is `copy and paste` below commands to cygwin console:

# cd $DIR # Change working directory where you want to install apt-cyg
git clone https://github.com/kou1okada/apt-cyg.git
ln -s "$(realpath apt-cyg/apt-cyg)" /usr/local/bin/

If you want to use another fork, which forked from https://github.com/kou1okada/apt-cyg, rewrite the URL for apropriate one.

### Proxy support

Use `--proxy`, `-p` option.
This option must take a parameter from one of "auto", "inherit", "none" and URL.

* "auto" will determine a proxy using a part of the [Web Proxy Auto-Discovery Protocol (WPAD)](http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol).
The current implementation will look for a string of "PROXY URL" from "http://wpad/wpad.dat".
If "wpad.dat" could not be downloaded, the proxy settings are inherited from the parent environment.
* "inherit" will inherit the proxy settings from the parent environment.
* "none" will not use the proxy.
* URL can take a string like "protocol://hostname:port".

For example:

apt-cyg --proxy http://proxy.home:8080 update

The default parameter is "${APT\_CYG\_PROXY:-auto}".
At the environment where is not provided the WPAD server, it makes the lag for a few seconds at startup.
So, if you don't want to use WPAD, please define APT\_CYG\_PROXY environment variable as below:

export APT_CYG_PROXY=inherit

### Bash completion support

Bash completion script can be installed to "/etc/bash_completion.d/apt-cyg" by `completion-install` subcommand.
It will be automatically updated when apt-cyg is upgraded to newer version.
If you don't want to update it automatically, execute `completion-install` subcommand in conjunction with `--completion-disable-autoupdate` option. And `completion-uninstall` subcommand removes "/etc/bash_completion.d/apt-cyg".

Some other forks, [Milly / apt-cyg](https://github.com/Milly/apt-cyg) under the cfg / apt-cyg fork, [ashumkin / apt-cyg](https://github.com/ashumkin/apt-cyg) and etc, are also supported it.

Contributing
------------

This project has been re-published on GitHub to make contributing easier. Feel free to fork and modify this script.

The [Google Code project](https://code.google.com/p/apt-cyg/) has a list of open issues.

### Forks on the github

Caution:
Please do not merge forks that have incompatible licenses.

Ex.) Merging to the GPL from the MIT is possible. But merging to the MIT from the GPL is impossible.

See [other_forks.md](other_forks.md)

Todo
------------

- [ ] Support multi mirrors: Cygwin setup can use multi mirrors. They are recorded at last-mirror section in '/etc/setup/setup.rc'. It's useful for using [Cygwinports](http://cygwinports.org/).
- [ ] Support upgrade: But maybe, busy resources can not be upgraded, and rebase problem will happen. Cygwin setup resolves by replacing them at next reboot.
- [ ] Support dependency check for remove subcommand.

Known Problems
------------

For older known problems see [known_problems.md](known_problems.md).

License
-------

[![The MIT license](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
Loading