Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

apt-get not working in Cygwin

Tags:

windows

cygwin

I'm something of a Cygwin newbie, so that might be the problem, but I'm trying to install a package using apt-get and it's telling me there's no such command. I installed it on Windows 7.

The best I got from searching other questions here and across the net was that you need to install something specific (or run the setup file to update) when initially installing, but it's not clear to me what I need to install or run or whatever.

How do I install or update my cygwin to be able to use apt-get or, alternatively, how would I install packages with the basic, default installation of Cygwin that I already have?

Thank you.

like image 570
Reverend Bubbles Avatar asked Apr 22 '15 15:04

Reverend Bubbles


People also ask

Can I use apt get on Cygwin?

No. The only officially supported tool for downloading and updating Cygwin packages is the setup.exe file you used for the initial install, although that can be invoked with command line arguments to help the process.

How do I get apt-cyg in Cygwin?

Installing apt-cyg is simple. First, save this file: https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg . Then, use File Explorer to find the file in your Downloads folder and move it into C:\cygwin\bin. Then, open Cygwin and enter "chmod +x /bin/apt-cyg".

How do I use wget in Cygwin?

Click next to complete the installation and run wget using the Cygwin Terminal or Cygwin64 Terminal (if you have installed the 64-bit version). As of Windows 10 (version 1803), if you need a HTTP client, curl is now installed by default. On PowerShell, wget is also an alias for Invoke-WebRequest.


1 Answers

You can use this : apt-cyg

It works just like apt-get in terms of command line arguments, but you will be using apt-cyg instead.

like image 116
chesh Avatar answered Oct 31 '22 13:10

chesh