apt-cyg icon indicating copy to clipboard operation
apt-cyg copied to clipboard

Question: apt-cyg install (previous version)

Open userdocs opened this issue 6 years ago • 3 comments
trafficstars

Just a question.

When i do apt-cyg find openssh I only get the option to install the current version of 8.0 but i would really like to install 7.9

Is it possible to install a previous version of some app like in the setup.exe does?

I cannot seem to figure out how to do this or if it is possible.

userdocs avatar May 08 '19 17:05 userdocs

Sorry, currently the feature of selecting a version is not implemented. Please wait for a while. I'll try to implement it when I have time to spare.

For you, who are waiting it, I suggest another way to install a previous version easily. Try following command:

apt-cyg setup -- -B -M -P openssh

setup-x86{_64,}.exe will be stopped at the dialog of Cygwin Setup - Select Packages. This makes easy for you to choose a version which you want to install.

If you already installed oppenssh and you want to replace it, try this one:

apt-cyg setup -- -q -B -M -x openssh -P openssh

image

kou1okada avatar May 09 '19 04:05 kou1okada

Thank you for the reply. It was very helpful and informative.

It works for what i need it to do now i understand how the command is formatted.

I'll just add this for anyone else reading.

In this command apt-cyg setup -- -B -M -P openssh

-B -M -P are switches passed to the setup.exe from here https://www.cygwin.com/faq/faq.html#faq.setup.cli

userdocs avatar May 09 '19 09:05 userdocs

Yes. Also you can read it with following command:

apt-cyg setup -- --help

kou1okada avatar May 09 '19 09:05 kou1okada