Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to configure cygwin Local Package Directory

I have to change my cygwin Local Package Directory, which happen to be earlier as C:\Users\username\Downloads.

Folders like http%3a%2f%2fcygwin.mirror.constant.com%2f are all in place in my new directory for Local Package Directory.

How to do that? (I cannot find, where cygwin stores the config.)

Running setup from new location tries to install all over again instead from continue using earlier packages from the internet.

like image 499
WebComer Avatar asked Oct 08 '17 00:10

WebComer


People also ask

Where is Cygwin packages stored?

Information on installed packages is kept in the /etc/setup/ directory of your Cygwin installation; if setup.exe cannot find this directory it will act as if you have no Cygwin installation.

How do I change the path to Cygwin in Windows 10?

From the Start menu, select Parameters > Control Panel > System. Select the Advanced tab and click Environment variables. Edit the PATH environment variable to add the Cygwin installation directory, for example c:\cygwin\bin; and click OK.

How do I select all packages in Cygwin?

Update: In the new Cygwin interface, click the drop-down next to the View label in the top left and select Category. Thanks to simlev for the answer. Next, click the 'Default' next to 'All'. Now all packages are selected!


1 Answers

The information is on /etc/setup/setup.rc

$ head setup.rc
last-cache
        e:\downloads\cygwin_cache
last-mirror
        http://mirrors.kernel.org/sourceware/cygwin/
net-method
        Direct
last-action
        Download,Install
mirrors-lst
....

Please note that setup just propose the settings based on last run but you can always change typing new values.

like image 171
matzeri Avatar answered Oct 08 '22 11:10

matzeri