Re: A small suggestion to setup.exe of cygwin

2008-04-02 Thread Larry Hall (Cygwin)

想 李 wrote:

Hi List:

I just got a small suggestion to the setup.exe of cygwin. I feel it could
be useful to add a function, which makes it possible to export the package
list (that you currently installed or going to install) into a file (txt for
example), or at least allow people to copy the characters from setup.exe.
This will make a person easily set up a cygwin environment that exactly the
same as someone else who shares his package list. You know when developing
programs, sometimes it is important to have the same version of compilers or
tools. And this could also help to specify which "version" of cygwin you are
using.


I think what you're looking for is '/etc/setup/installed.db' or the output
of 'cygcheck -c[d]'

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: A small suggestion to setup.exe of cygwin

2008-04-03 Thread Michael Kairys
I've wondered about this too... So if I have changed my Cygwin setup on one 
machine and I want to duplicate those changes on another machine, all I have 
to do is copy installed.db to the other machine and run setup.exe there? 




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: A small suggestion to setup.exe of cygwin

2008-04-03 Thread 想 李

Thanks Larry, good to know "cygcheck" command and install.db.
Sorry that I should have take a look at FAQ more carefully since
all of above have been talked there.

But what I suggested on the other hand is the same as Michael's idea.
I would like to see if cygwin's setup.exe could somehow "import" an
install.db file and perform setup automatically to copy a cygwin
environment with all of your preferred packages. 

This will make life easier without manually choose those packages
one by one from such a long list. You know, I always want to save my
hard disk but always forget something and have to run setup.exe
again and again. This will also give great ease when you transfer your
work from different computers, or when telling your colleague to
create the same cygwin env as yours.

Or, maybe this function also has been implemented by some cygwin
commands else? Please let me know if it exists. Thanks.

/Xiang

> I've wondered about this too... So if I have changed my Cygwin setup on one 
> machine and
> I want to duplicate those changes on another machine, all I have to do is 
> copy installed.db
> to the other machine and run setup.exe there? 



_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: A small suggestion to setup.exe of cygwin

2008-04-03 Thread Larry Hall (Cygwin)

想 李 wrote:

Michael wrote:

I've wondered about this too... So if I have changed my Cygwin setup on one 
machine and
I want to duplicate those changes on another machine, all I have to do is copy 
installed.db
to the other machine and run setup.exe there? 

> Thanks Larry, good to know "cygcheck" command and install.db.
> Sorry that I should have take a look at FAQ more carefully since
> all of above have been talked there.
>
> But what I suggested on the other hand is the same as Michael's idea.
> I would like to see if cygwin's setup.exe could somehow "import" an
> install.db file and perform setup automatically to copy a cygwin
> environment with all of your preferred packages.
>
> This will make life easier without manually choose those packages
> one by one from such a long list. You know, I always want to save my
> hard disk but always forget something and have to run setup.exe
> again and again. This will also give great ease when you transfer your
> work from different computers, or when telling your colleague to
> create the same cygwin env as yours.
>
> Or, maybe this function also has been implemented by some cygwin
> commands else? Please let me know if it exists. Thanks.

Putting "/etc/setup/installed.db" in place before running 'setup.exe'
should make it think all those packages are installed.  Switching to
"Reinstall" for "All" should make it reinstall the packages at the
version specified, if those exists.  This does presuppose that you
have a local package directory with all the packages/versions you
want and that you've told 'setup.exe' to install from that local
package directory.

FYI, I haven't tested this process myself.  Bumps and bruises may
occur. ;-)

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: A small suggestion to setup.exe of cygwin

2008-04-04 Thread Michael Kairys


"Larry Hall (Cygwin)" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

想 李 wrote:

Michael wrote:
I've wondered about this too... So if I have changed my Cygwin setup on 
one machine and
I want to duplicate those changes on another machine, all I have to do 
is copy installed.db

to the other machine and run setup.exe there?

> Thanks Larry, good to know "cygcheck" command and install.db.
> Sorry that I should have take a look at FAQ more carefully since
> all of above have been talked there.
>
> But what I suggested on the other hand is the same as Michael's idea.
> I would like to see if cygwin's setup.exe could somehow "import" an
> install.db file and perform setup automatically to copy a cygwin
> environment with all of your preferred packages.
>
> This will make life easier without manually choose those packages
> one by one from such a long list. You know, I always want to save my
> hard disk but always forget something and have to run setup.exe
> again and again. This will also give great ease when you transfer your
> work from different computers, or when telling your colleague to
> create the same cygwin env as yours.
>
> Or, maybe this function also has been implemented by some cygwin
> commands else? Please let me know if it exists. Thanks.

Putting "/etc/setup/installed.db" in place before running 'setup.exe'
should make it think all those packages are installed.  Switching to
"Reinstall" for "All" should make it reinstall the packages at the
version specified, if those exists.


That makes sense, thanks.


This does presuppose that you
have a local package directory with all the packages/versions you
want and that you've told 'setup.exe' to install from that local
package directory.


Why is that? If I'm set up to install from the Internet wouldn't reinstall 
all go there? I've never kept a local package directory...



FYI, I haven't tested this process myself.  Bumps and bruises may
occur. ;-)

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: A small suggestion to setup.exe of cygwin

2008-04-04 Thread Igor Peshansky
On Thu, 3 Apr 2008, Michael Kairys wrote:

> I've wondered about this too... So if I have changed my Cygwin setup on
> one machine and I want to duplicate those changes on another machine,
> all I have to do is copy installed.db to the other machine and run
> setup.exe there?

That would replicate the installed packages, but not the versions, since
setup would, by default, pull in the latest. The usual way is to edit
installed.db on the new machine to change all the versions to 0.0,
otherwise setup would think that they are already installed and won't
bother installing them.  You might be able to select "Reinstall" with the
unmodified installed.db, but I haven't tested this hypothesis...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it." -- Rabbi Hillel

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: A small suggestion to setup.exe of cygwin

2008-04-04 Thread Igor Peshansky
On Fri, 4 Apr 2008, Michael Kairys wrote:

> "Larry Hall (Cygwin)" <[EMAIL PROTECTED]> wrote in message news:[EMAIL 
> PROTECTED]

.  Thanks.

> >  wrote:
> > > Michael wrote:
> > > > I've wondered about this too... So if I have changed my Cygwin
> > > > setup on one machine and I want to duplicate those changes on
> > > > another machine, all I have to do is copy installed.db to the
> > > > other machine and run setup.exe there?
> > >
> > > But what I suggested on the other hand is the same as Michael's idea.
> > > I would like to see if cygwin's setup.exe could somehow "import" an
> > > install.db file and perform setup automatically to copy a cygwin
> > > environment with all of your preferred packages.
> >
> > Putting "/etc/setup/installed.db" in place before running 'setup.exe'
> > should make it think all those packages are installed.
> > [snip]
> > This does presuppose that you
> > have a local package directory with all the packages/versions you
> > want and that you've told 'setup.exe' to install from that local
> > package directory.
>
> Why is that? If I'm set up to install from the Internet wouldn't
> reinstall all go there? I've never kept a local package directory...

Because the versions you had on your old machine may no longer be
available on Cygwin mirrors.

If you want to replicate the packages, but not the versions, installing
from the Internet is fine (again, change all versions to 0.0 if you want
that, to make sure setup picks up the packages).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it." -- Rabbi Hillel

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: A small suggestion to setup.exe of cygwin

2008-04-04 Thread Michael Kairys
"Igor Peshansky" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]



If you want to replicate the packages, but not the versions, installing
from the Internet is fine (again, change all versions to 0.0 if you want
that, to make sure setup picks up the packages).
Igor


That is what I would usually want to do, so editing installed.db and 
installing from the internet is the way to go for me.

Thanks...



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/