Re: [julia-users] Get an array or just a string of all installed Julia packages

2015-10-11 Thread lewis
Great.  Thanks.

When you say (new installation) Pkg.update() what is (new installation) 
on the command line?  Does it mean cd over there first?

On Sunday, October 11, 2015 at 3:08:12 AM UTC-7, Tim Holy wrote:
>
> Try this: 
> (new installation) Pkg.init() 
> cp OldInstallation/.julia/v0.4/REQUIRE NewInstallation/.julia/v0.4/ 
> (new installation) Pkg.update() 
>
> As for your original question, collect(keys(Pkg.installed())) should do 
> what 
> you ask. 
>
> --Tim 
>
> On Saturday, October 10, 2015 12:47:01 PM le...@neilson-levin.org 
>  wrote: 
> > I would like to generate a list of all the packages I've installed. 
>  Each 
> > time I install Julia (which I've done a lot recently, but will settle 
> down 
> > now that 0.4.0 is released--Yeah!) I need to install packages again.  It 
> > would be nice to have a list.  It would be nicer to be able to install 
> them 
> > as a batch, but since makes take a long time and can be fragile I am OK 
> > without a batch. 
> > 
> > Basically, I want pip freeze > mypkgs.txt within the Julia repl. 
> >  Unfortunately, since Pkg.status is ::void it produces no output to 
> > capture.  I tried pipeline.  No go. 
> > 
> > Should be easy;  seems an obvious request.  Writing a little Julia 
> script 
> > is a fine solution, but without being able to capture Pkg.status not 
> sure 
> > what it would look like. 
> > 
> > Thanks 
>
>

Re: [julia-users] Get an array or just a string of all installed Julia packages

2015-10-11 Thread Tim Holy
Try this:
(new installation) Pkg.init()
cp OldInstallation/.julia/v0.4/REQUIRE NewInstallation/.julia/v0.4/
(new installation) Pkg.update()

As for your original question, collect(keys(Pkg.installed())) should do what 
you ask.

--Tim

On Saturday, October 10, 2015 12:47:01 PM le...@neilson-levin.org wrote:
> I would like to generate a list of all the packages I've installed.  Each
> time I install Julia (which I've done a lot recently, but will settle down
> now that 0.4.0 is released--Yeah!) I need to install packages again.  It
> would be nice to have a list.  It would be nicer to be able to install them
> as a batch, but since makes take a long time and can be fragile I am OK
> without a batch.
> 
> Basically, I want pip freeze > mypkgs.txt within the Julia repl.
>  Unfortunately, since Pkg.status is ::void it produces no output to
> capture.  I tried pipeline.  No go.
> 
> Should be easy;  seems an obvious request.  Writing a little Julia script
> is a fine solution, but without being able to capture Pkg.status not sure
> what it would look like.
> 
> Thanks