Announcement

Collapse
No announcement yet.

[SOLVED] Converting .rpm to tar.gz

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Converting .rpm to tar.gz

    I am trying to convert a Java rpm file to tar.gz so I can use it with 9.10. With apologies for its length, here is the output I get:

    sudo alien -tiv jre-6u18-linux-i586.rpm
    LANG=C rpm -qp --queryformat %{NAME} jre-6u18-linux-i586.rpm
    LANG=C rpm -qp --queryformat %{VERSION} jre-6u18-linux-i586.rpm
    LANG=C rpm -qp --queryformat %{RELEASE} jre-6u18-linux-i586.rpm
    LANG=C rpm -qp --queryformat %{ARCH} jre-6u18-linux-i586.rpm
    LANG=C rpm -qp --queryformat %{CHANGELOGTEXT} jre-6u18-linux-i586.rpm
    LANG=C rpm -qp --queryformat %{SUMMARY} jre-6u18-linux-i586.rpm
    LANG=C rpm -qp --queryformat %{DESCRIPTION} jre-6u18-linux-i586.rpm
    LANG=C rpm -qp --queryformat %{COPYRIGHT} jre-6u18-linux-i586.rpm
    error: incorrect format: unknown tag
    LANG=C rpm -qp --queryformat %{PREFIXES} jre-6u18-linux-i586.rpm
    LANG=C rpm -qp --queryformat %{POSTIN} jre-6u18-linux-i586.rpm
    LANG=C rpm -qp --queryformat %{POSTUN} jre-6u18-linux-i586.rpm
    LANG=C rpm -qp --queryformat %{PREUN} jre-6u18-linux-i586.rpm
    LANG=C rpm -qp --queryformat %{PREIN} jre-6u18-linux-i586.rpm
    LANG=C rpm -qcp jre-6u18-linux-i586.rpm
    rpm -qpi jre-6u18-linux-i586.rpm
    LANG=C rpm -qpl jre-6u18-linux-i586.rpm
    Warning: Skipping conversion of scripts in package jre: postinst postrm prerm
    Warning: Use the --scripts parameter to include the scripts.
    mkdir jre-1.6.0_18
    chmod 755 jre-1.6.0_18
    rpm2cpio jre-6u18-linux-i586.rpm | (cd jre-1.6.0_18; cpio --extract --make-directories --no-absolute-filenames --preserve-modification-time) 2>&1
    chmod 755 jre-1.6.0_18/./
    chmod 755 jre-1.6.0_18/./etc/init.d
    chown 0:0 jre-1.6.0_18//etc
    chmod 755 jre-1.6.0_18//etc
    chown 0:0 jre-1.6.0_18//etc/.java
    chmod 755 jre-1.6.0_18//etc/.java
    chown 0:0 jre-1.6.0_18//etc/.java/.systemPrefs
    chmod 755 jre-1.6.0_18//etc/.java/.systemPrefs
    chown 0:0 jre-1.6.0_18//etc/.java/.systemPrefs/.system.lock
    chmod 644 jre-1.6.0_18//etc/.java/.systemPrefs/.system.lock
    chown 0:0 jre-1.6.0_18//etc/.java/.systemPrefs/.systemRootModFile
    chmod 644 jre-1.6.0_18//etc/.java/.systemPrefs/.systemRootModFile
    chown 0:0 jre-1.6.0_18//etc/init.d/jexec
    chmod 755 jre-1.6.0_18//etc/init.d/jexec
    chown 0:0 jre-1.6.0_18//usr
    chmod 755 jre-1.6.0_18//usr
    chown 0:0 jre-1.6.0_18//usr/java
    chmod 755 jre-1.6.0_18//usr/java
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/COPYRIGHT
    chmod 644 jre-1.6.0_18//usr/java/jre1.6.0_18/COPYRIGHT
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/LICENSE
    chmod 644 jre-1.6.0_18//usr/java/jre1.6.0_18/LICENSE
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/README
    chmod 644 jre-1.6.0_18//usr/java/jre1.6.0_18/README
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/THIRDPARTYLICENSEREADME.txt
    chmod 644 jre-1.6.0_18//usr/java/jre1.6.0_18/THIRDPARTYLICENSEREADME.txt
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/Welcome.html
    chmod 644 jre-1.6.0_18//usr/java/jre1.6.0_18/Welcome.html
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/java
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/java
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/java_vm
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/java_vm
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/javaws
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/javaws
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/jcontrol
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/jcontrol
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/keytool
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/keytool
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/orbd
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/orbd
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/pack200
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/pack200
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/policytool
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/policytool
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/rmid
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/rmid
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/rmiregistry
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/rmiregistry
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/servertool
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/servertool
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/tnameserv
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/tnameserv
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/unpack200
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/bin/unpack200
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/javaws
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/javaws
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/lib
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/lib
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/lib/alt-rt.jar
    chmod 644 jre-1.6.0_18//usr/java/jre1.6.0_18/lib/alt-rt.jar
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/lib/applet
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/lib/applet
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/lib/audio
    chmod 755 jre-1.6.0_18//usr/java/jre1.6.0_18/lib/audio
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/lib/audio/soundbank.gm
    chmod 644 jre-1.6.0_18//usr/java/jre1.6.0_18/lib/audio/soundbank.gm
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/lib/calendars.properties
    chmod 644 jre-1.6.0_18//usr/java/jre1.6.0_18/lib/calendars.properties
    chown 0:0 jre-1.6.0_18//usr/java/jre1.6.0_18/lib/charsets.jar
    chown: cannot access `jre-1.6.0_18//usr/java/jre1.6.0_18/lib/charsets.jar': No such file or directory
    failed chowning /usr/java/jre1.6.0_18/lib/charsets.jar to 0:0: Illegal seek at /usr/share/perl5/Alien/Package/Rpm.pm line 265, <GETPERMS> line 38.
    find jre-1.6.0_18 -type d -exec chmod 755 {} ;
    rm -rf jre-1.6.0_18

    I am a real newb at this point, so I am unclear on what my next step should be. (I have installed the generic Java package available through apt, but it will not work for the particular program I am trying to run. That program insists on this other package.)
    Thanks in advance.

    #2
    Re: Converting .rpm to tar.gz

    Firstly, I assume you know that you can install Sun's version of Java 6 update 15 directly from your package manager if you enable the correct repository.

    If you really need to install u18, I would suggest downloading the "other" file from Sun's website (jre-6u18-linux-i586.bin) and follow the instructions on this webpage
    http://www.64bitjungle.com/ubuntu/in...-java-runtime/

    Note that this is totally unsupported and is highly likely to break your system when upgrading to the next version -- but if you really need to use the latest and greatest version, this actually does work.
    Code:
    skunk@skunk-develop:~/$ java -version
    java version "1.6.0_18"
    Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)

    Comment


      #3
      Re: Converting .rpm to tar.gz

      Hey Don you're going down the wrong path there, unless is something very special about that particular Java package. You're fighting two problems, actually.

      1. Install the Medibuntu repository, as per this guidance:

      http://ubuntuforums.org/showthread.php?t=766683

      then just
      Code:
      sudo apt-get install sun-java6-jre

      2. In the future, for a needed package that is not in the standard repositories, and you find a .rpm version, there is a package called alien that exists for the sole purpose of converting .rpm packages to ,deb packages (and vice-versa). So you'll use alien to do the conversion, and you'll go to the .deb package format, not tar.gz.

      Hope this helps!


      EDIT: Oops sorry to stomp on your reply skunk!

      Comment


        #4
        Re: Converting .rpm to tar.gz

        deleted (redundant)

        Comment


          #5
          Re: Converting .rpm to tar.gz

          Dibl's directions worked wonderfully, once I changed the relevant part of the final instruction's call from "libk3b2-extracodecs" to "libk3b6-extracodecs"

          My thanks.

          Comment

          Working...
          X