[Haskell-cafe] Re: Trouble trying to find packages for ubuntu linux

Thomas Hartman tphyahoo at gmail.com
Thu Apr 5 05:28:41 EDT 2007

In the spirit of...

  I hate package chasing, cabal doesn't do this automatically (yet),
and hard disk space is cheap...

  Here is a script to just hit the deb/ubuntu repos and install as
much haskell-loooking stuff as possible.

  If you're going to do this, I would recommend pulling at least from
the feisty repo, as described in pupeno's blog, and in more detail in
my other post linked above.

  Basically, this installs all ghc6* packages, with ad-hoc blocking of
packages that cause aptitude to complain.

  The basic approach seems sound though. If it gets stuck at some
point, I'll just add the offending package to the filter list.  (I
suspect there's a more intelligent way to do this if you know debian
package management better than I do.)

 The script below has been cranking away for a pretty long time now --
so not only may your mileage vary, mine isnt' even yet.

  I also wouldn't recommend doing this on a production server.
(When/if I hose my system, I can reload a virgin ubuntu in under five
minutes using my linode control panel.)


apt-cache search libghc6 | ghc -e 'interact $ unlines . map (\l ->
head $ words l ) . lines' \
  | grep -ivE \(ghc6-hopengl\|libghc6-c2hs-dev\) \
  | xargs apt-get -y install

2007/3/16, Chad Scherrer <chad.scherrer at gmail.com>:
> Brian,
> I had this exact problem, and I found this approach to work wonderfully:
> http://pupeno.com/2006/12/17/unstable-packages-on-ubuntu/
> Chad
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list