using the new rpm2tgz, with flags!!

In slackware-current as of 2010-02-23,  the traditional command used for very basic archive conversion of RPMs into a TAR’d.Gzip’d archive, just got a hint of flare. :)

Normal usage is typically for easily converting an RPM that you’d like to review, like a ‘src’ RPM.

But you may find yourself saying, if I could just quickly/easily install <xyz>.rpm on my system as slackware package, it would make life a bit easier. Well now there are several flags available, to be used AT YOUR OWN RISK ;)

If you execute rpm2tgz with no arguments, it will output the following

$ rpm2tgz
/usr/bin/rpm2tgz:  Converts RPM format to standard GNU tar + GNU zip format.
            (view converted packages with "less", install and remove
            with "installpkg", "removepkg", "pkgtool", or manually
            with "tar")

Usage:      /usr/bin/rpm2tgz [OPTION] 
            (Outputs "file.tgz")

  -s    extract the install scripts to /usr/doc/$PRGNAM-$VERSION/
          for review.
  -S    extracts the install scripts to be executed on package installation
          (only pre-install and post-install scripts used)
          USE WITH CAUTION!
  -n    name the output package using the rpm's metadata
  -r    extract what the rpm's "requires" (dependencies)
          as documention to /usr/doc/$PRGNAM-$VERSION/
  -d    attempt a wellformed slack-desc from the rpm meta data

Everything is pretty straight forward on what it does, but lets have an example. Say you want hulu-desktop, so you download a file called “huludesktop-x86_64.rpm”, and with traditional usage of rpm2tgz, you would have a resulting archive named “huludesktop-x86_64.tgz”. This is fine if you are not going to install it, but if you do plan on installing this archive, now it does not conform to the naming convention.

With the flags available, you can specify the following command

$ sudo rpm2tgz -srdn huludesktop-x86_64.rpm

and get a resulting package called “huludesktop-0.9.7-x86_64-1.tgz”.

All flags are not needed, for every situation, and particular ones should be used with care (-S), which can and may frequently wreak havoc on your system.

Take care,

vb

Share

Openoffice.org 3.1.0 on Dell Mini 9 with Ubuntu 8.04.1

So I have *finally* received the 9 inch Dell mini that I had ordered over a month ago. The device pre-installed with Ubuntu was much more preferable, even though the release is a couple of versions old now.

Everything is great so far, but the first thing that i had to do was update the version of OpenOffice.org being used. Its not so much that I have any problems with version 2.4, but rather everything else I am using is version 3.0 or 3.1.  I have seen several issues when opening and transferring an *.odt between varying versions of openoffice.  Its never fun to lose or mess up formating.

Luckily for me, there were only a couple of dependencies that had to be resolved and the packages I lost, didn’t really impact me.

First off, I had to add the project that maintains the lastest OOo for Ubuntu. Either through the GUI or to /etc/apt/sources.list, add

deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu hardy main

and then wget their key and import it. I panzied out and used the GUI to import it.

http://ppa.launchpad.net/openoffice-pkgs/ubuntu/dists/hardy/Release.gpg

you next apt-get update, and should remove the following to packages, and all their dependencies.

aptitude remove openoffice.org-l10n-en-za openoffice.org-l10n-en-gb

at which point, you are clear to do an

aptitude dist-upgrade

all done!

take care,

vb

Share

jre and jdk version 1.5 for slackware-12.2 (and -current for that matter)

due to my current line of work, i am not able to completely migrate to the latest stable java, version 6, that ships with slackware-12.2 and slackware-current.
i have taken a snapshot of the last slackware build scripts, for java 1.5 and have kept them updated for the latest jre and jdk updates.
you can find them here for the jdk and the jre

currently it is on 1.5.0 update 17, but this is an svn directory, so it may bump versions at a later date.

enjoy,

vb

Share