[plug] ubuntu package install question

Russell Steicke r.steicke at bom.gov.au
Mon Mar 7 08:13:38 WST 2005


On Mon, Mar 07, 2005 at 03:13:03AM +1100, Onno Benschop wrote:
> Chris Griffin wrote:
> 
> >I have managed to install ubuntu and wanted to install the latest Java
> >runtime. I have a .rpm of it and have managed to try to tell ubuntu to
> >install the rpm. It told me I needed to use alien on it, I did and now
> >I have a .deb of that file. So what now?
> >
> Normally you'd use dpkg -i file.deb, however if you're installing Sun 
> Java, starting off with an RPM, and using alien to make it into a .deb, 
> it won't work.

It can be made to work.  The problem I found is that there's a
post-install script in the rpm that's not copied to the deb.  So after
installing the deb, you can do what that script would do with
something like this:

  cd /usr/java/jdk1.5.0
  for z in $(find . -type f -name \*.pack) ; do
    /usr/java/jdk1.5.0/bin/unpack200 $z $(dirname $z)/$(basename $z .pack).jar
  done

There is a --scripts option to alien to convert these scripts and add
them to the deb, but I haven't tried that.



-- 
Russell Steicke

-- Fortune says:
Jesuit priests are DATING CAREER DIPLOMATS!!



More information about the plug mailing list