Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a repository using apt-cyg

Tags:

cygwin

apt-get

In Ubuntu, you can run a line like

sudo apt-add-repository ppa:swi-prolog/stable

How to do it using apt-cyg in Cygwin windows?

like image 416
Mohamed Taher Alrefaie Avatar asked Mar 14 '14 16:03

Mohamed Taher Alrefaie


1 Answers

You can run apt-cyg with the -m option to specify a mirror/repository. So this is what I did to install PHP from the Cygwinports repo.

apt-cyg update -m ftp://ftp.cygwinports.org/pub/cygwinports

Then I was able to install the packages from that repo.

apt-cyg install php
like image 66
e.marten Avatar answered Nov 10 '22 17:11

e.marten