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

Thomas Hartman tphyahoo at gmail.com
Sat Apr 7 07:14:12 EDT 2007


refined as below. This "one-shot install" runs without any errors. I
wouldn't expect this to necessarily continue to work, as feisty is
"unstable". (A little hazy on what that means)

The troubles are indeed all connected to gtk.

thartman at linodehaskell:~/shellenv/installs/haskell-installs>cat
apt-install-as-many-haskell-libs-as-possible.sh
#!/bin/bash
apt-cache search libghc6 | ghc -e '
  -- do not install any of the following
  let exclude_strings = ["ghc6-hopengl",
                         "libghc6-c2hs-dev",
                         "libghc6-gtk-dev",
                         "gtk2hs-doc",
                         "libghc6-gtkglext-dev",
                         "libghc6-soegtk-dev",
                         "libghc6-mozembed-dev",
                         "libghc6-sourceview-dev",
                         "libghc6-glade-dev"
                        ]
      matches_any x xs = any (x==) xs
      matches_no_exclude_strings x = not $ matches_any x exclude_strings
      column1 l = head $ words l
  in
    interact $
      unlines
        . filter matches_no_exclude_strings
        . map column1
      . lines
' \
| xargs apt-get -y install -o APT::Cache-Limit=25165824

# xargs --max-lines=1 can be helpful for debugging if anything goes
wrong in the above.
thartman at linodehaskell:~/shellenv/installs/haskell-installs>


2007/4/6, Thomas Hartman <tphyahoo at gmail.com>:
> ...  I will
> refine it so it completes without errors, time allowing.


More information about the Haskell-Cafe mailing list