
Hi all, I want to use cabal-install on a machine without internet access. I tried downloading http://hackage.haskell.org/cgi-bin/hackage-scripts/archive.tar, unpacking it and setting the local-repo field in the config file to this location but that doesn't work, as cabal-install says that it is missing the package list for the local repo. What should I do? Thanks, Pedro

José Pedro Magalhães wrote:
I want to use cabal-install on a machine without internet access.
Work is ongoing for a version of hackage that you can just install on your own server. Perhaps the people working on that can comment about the status. If all you want is a barebones server that you can upload packages to for use via cabal-install, you can get: http://hackage.haskell.org/package/yackage Hope this helps, Yitz

Hi Yitz,
Thanks, but I don't really need a functional server or anything; I just want
to have a local copy of Hackage on disk (latest versions only will do) and
tell cabal-install to use that instead of the web.
Regarding yackage, I don't think I can open ports on that machine either...
Thanks,
Pedro
2011/4/7 Yitzchak Gale
José Pedro Magalhães wrote:
I want to use cabal-install on a machine without internet access.
Work is ongoing for a version of hackage that you can just install on your own server. Perhaps the people working on that can comment about the status.
If all you want is a barebones server that you can upload packages to for use via cabal-install, you can get:
http://hackage.haskell.org/package/yackage
Hope this helps, Yitz

José Pedro Magalhães wrote:
Thanks, but I don't really need a functional server or anything; I just want to have a local copy of Hackage on disk (latest versions only will do) and tell cabal-install to use that instead of the web.
If you have the package tarball, you can unpack it manually and then type "cabal install" (with no package name) inside that directory.
Regarding yackage, I don't think I can open ports on that machine either...
You don't need to open the port. With the -l flag yackage only uses the port on localhost. There are sometimes problems with that in the latest version, but that will be fixed in the next release. But anyway, it sounds like you indeed may not need a server at all. Regards, Yitz

Local copy ? You know that hackage is hosting several thausands of source archives - also old versions you don't want? Do you want to mirror everything locally? Fetching "latest" versions only to generate hashes takes many hours. (Experience from hack-nix). Marc Weber

On Thu, Apr 7, 2011 at 11:21, Marc Weber
Local copy ? You know that hackage is hosting several thausands of source archives - also old versions you don't want?
Do you want to mirror everything locally?
Fetching "latest" versions only to generate hashes takes many hours. (Experience from hack-nix).
There's a tar-ball served from http://hackage.haskell.org/packages/hackage.html (http://hackage.haskell.org/cgi-bin/hackage-scripts/archive.tar) which contains the latest version of all packages. I think that's what the OP is using. Downloading a 150MB tar-ball shouldn't take many hours, if you're on a decent connection. /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus

Yes, I have that tarball. I just don't know how to tell cabal-install to use
it. Going to each package, individually unpacking and installing it is what
I've been doing so far, but I was hoping that could be automated.
Cheers,
Pedro
On Thu, Apr 7, 2011 at 14:18, Magnus Therning
On Thu, Apr 7, 2011 at 11:21, Marc Weber
wrote: Local copy ? You know that hackage is hosting several thausands of source archives - also old versions you don't want?
Do you want to mirror everything locally?
Fetching "latest" versions only to generate hashes takes many hours. (Experience from hack-nix).
There's a tar-ball served from http://hackage.haskell.org/packages/hackage.html (http://hackage.haskell.org/cgi-bin/hackage-scripts/archive.tar) which contains the latest version of all packages. I think that's what the OP is using. Downloading a 150MB tar-ball shouldn't take many hours, if you're on a decent connection.
/M
-- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

This could be a nice feature and not hard to implement, maybe someone could
take it up?
2011/4/7 José Pedro Magalhães
Yes, I have that tarball. I just don't know how to tell cabal-install to use it. Going to each package, individually unpacking and installing it is what I've been doing so far, but I was hoping that could be automated.
Cheers, Pedro
On Thu, Apr 7, 2011 at 14:18, Magnus Therning
wrote: On Thu, Apr 7, 2011 at 11:21, Marc Weber
wrote: Local copy ? You know that hackage is hosting several thausands of source archives - also old versions you don't want?
Do you want to mirror everything locally?
Fetching "latest" versions only to generate hashes takes many hours. (Experience from hack-nix).
There's a tar-ball served from http://hackage.haskell.org/packages/hackage.html (http://hackage.haskell.org/cgi-bin/hackage-scripts/archive.tar) which contains the latest version of all packages. I think that's what the OP is using. Downloading a 150MB tar-ball shouldn't take many hours, if you're on a decent connection.
/M
-- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

2011/4/7 José Pedro Magalhães
Hi all,
I want to use cabal-install on a machine without internet access. I tried downloading http://hackage.haskell.org/cgi-bin/hackage-scripts/archive.tar, unpacking it and setting the local-repo field in the config file to this location but that doesn't work, as cabal-install says that it is missing the package list for the local repo. What should I do?
Hello, In addition of the (unpacked) archive, you also need to provide a 00-index.tar.gz file. It is an archive with all the .cabal that are available in the repo. You can find info about its layout at the following page http://hackage.haskell.org/trac/hackage/wiki/HackageDB I don't know if such a index file is available for the archive.tar you have, but it should be straightforward to create it. HTH, Thu
participants (6)
-
José Pedro Magalhães
-
Magnus Therning
-
Marc Weber
-
Markus Läll
-
Vo Minh Thu
-
Yitzchak Gale