How to install apt-cyg for cygwin?

here is an explanation of how to installapt-cyg

Install apt-cyg

You may have heard of programs like apt-get (Ubuntu), yum / dnf (Fedora), pacman (Arch), or beer (Mac OS X) ..... A similar program for Cygwin is called apt-cyg.

Installing apt-cyg is easy. First save this file: https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg . Then use File Explorer to find the file in the Downloads folder and move it to C: \ cygwin \ bin. Then open Cygwin and enter "chmod + x / bin / apt-cyg". This tells Cygwin that you want to run the apt-cyg command. Finally, enter "apt-cyg mirror ftp://sourceware.org/pub/cygwin ". This installs apt-cyg to use the official repository when downloading programs.

That sounds easy enough. But I have a mistake.

This manual does not indicate which name and extension to save this file .

I save it as I apt-cyg.txtmove it toC:\cygwin64\bin

This does not work. When apt-cygI start, I get an error:bad interpreter: No such file or directory

how to install apt-cyg for cygwin?  - error

I assume the extension or file names are bad. What name and extension should be used?

Are there any other steps in this process?

Note. I just installed cygwin on Windows 10. Please do not assume that I have other tools that are already installed.

+7
source share
5 answers

, setup-x86.exe setup-x86_64.exe, https://www.cygwin.com/, cygwin. - , . gui .

+1

:

1 - , lynx

2 - lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg

3 - install apt-cyg /bin

!

+16

, , script (. ^ M). , git unix lf windows, clrf ..

clrf lf ( cr) :

sed -i 's/\r//g' apt-cyg

, apt-cyg /bin.

+5

github apt-cyg apt-cyg :

lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
install apt-cyg /bin

( , lynx cygwin. lynx cygwin, installation-path-to-cygwin\cygwin\setup\setup-x86_64.exe setup installation-path-to-cygwin\cygwin\setup\setup-x86_64.exe lynx .)

lynx . , - . , lynx.

GitHub, apt-cyg . , , , . , ( " " " " " " " "), file (txt). txt, . path-tocygwin\cygwin\setup\bin.

!!! apt-cyg cygwin.

:

proxt-, apt-cyg install :

export http_proxy=http://username:password@proxy-server-name:proxy-server-port
export https_proxy=http://username:password@proxy-server-name:proxy-server-port

:

export http_proxy=http://mahesh:password%40123@proxy.mycompany.com:8080
export https_proxy=http://mahesh:password%40123@proxy.mycompany.com:8080

@ %40.

:

apt-cyg install gcc-core
+3

.

  1. " https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg "
  2. " "
  3. c:\cygwin\bin ( Cygwin )
  4. .txt, apt-cyg
  5. "".
  6. chmod bash,
0

Source: https://habr.com/ru/post/1682138/


All Articles