最終更新:2021-12-27 (月) 11:49:20 (850d)  

apt-cyg
Top / apt-cyg

https://github.com/transcode-open/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.

メモ

本家の開発終了 (2017)

メモ

fork

インストール

GitHub

  • 作者のGitHub
  • https://github.com/transcode-open/apt-cyg
  • wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
  • install apt-cyg /bin
  • Lynxを使う方法に変更されてた (2014/12/20)
  • wgetが入ってないと代わりにlynxを使うっぽい
    lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
    install apt-cyg /bin

Google Code (古い)

  • 最新のr18 (2010-04-28)はリポジトリの新ディレクトリ構造に対応してない。
  • Subversionwgetが必要。
    svn --force export http://apt-cyg.googlecode.com/svn/trunk/ /bin/
    chmod +x /bin/apt-cyg
  • You must install wget, tar, gawk and bzip2 to use apt-cyg.

MD5 sum did not match, exiting

  • Since version 2.867, cygwin has move to sha512 checksum, however, the current version of apt-cyg is still using md5sum rather than sha512sum? for integrity verification. That’s what causes the problem.
  • To resolve the issue change the md5sum in line 323 and 326 of the file “apt-cyg” with sha512sum?. It should work.

x86とか(arch)が重複してエラーになる

arch問題修正版

  • https://github.com/rcmdnk/apt-cyg
  • Git,OpenSSHが必要。
    git clone git://github.com/rcmdnk/apt-cyg.git
    cp apt-cyg/apt-cyg /bin/
    rm -rf apt-cyg # if the local repository is not necessary
  • 取得先を国内サーバに
    apt-cyg -m http://ftp.iij.ad.jp/pub/cygwin/x86/ update

Usage examples:

"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

help

  • Usage: apt-cyg [<options>] [<subcommand> [<parameters> ...]]
      Installs and removes Cygwin packages.
    Subcommands:
      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|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 mirros.
      mirrors-list-long        : to show list of mirros with full details.
      mirrors-list-online      : to show list of mirros 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 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               : repair acl.
      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.
      homepage [<package names> ...] :
                                 Open homepages of packages.
      web [<package names> ...] :
                                 Synonym for homepage.
      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 mirror.
                                 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:
      --ag                     : use the silver searcher
                                 (currently work only at packageof subcommand)
      --charch <arch>          : change architecture
      --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
      --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
    
    

関連

参考