Installing RedHat RPM packages on VectorLinux (and possibly other distros) using Midnight Commander

Okay, my posts seem to get shorter and simpler by the day, but this comment by user lighans on my last post prompted me to write another quickie about installing stuff in VectorLinux.

Sometimes I’m a bit disappointed, because very few apps offer Slackware-ready (not to speak of VL-ready) packages on their websites for download. Thanks to the great community over at VectorLinux.com, more and more packages become available for VL on a daily basis, but some won’t be (possibly for good reasons).

However, a lot of times, RPM packages are available, as RPM is the standard package format under the Linux Standard Base. Fair enough, you might think, but how would that help me? Well, being a standard, of course there are options provided to be able to install RPM packages on other systems than RedHat or RH-based distributions. In VectorLinux (and quite possibly in all Slackware and even still possibly in most other distros), you have exactly two tools for installing RPM packages to your non-RedHat system:

  1. rpm2tgz (as described in my last post) converts rpm files to tgz files (d’uh!). The output files can then be processed as usual (e.g., installed with installpkg).
    Example:
    root:# rpm2tgz package-version.rpm
    root:# installpkg package-version.tgz
  2. Midnight Commander (a file manager similar to Dos Shell (remember that?)) can install RPM packages!
    Example:
    harpocrates://opt/OOo3/RPMS/
    root:# mc

    mc1

    Then, simply select the rpm you want to install and press F2:mc2

    The package installs as if it was being installed from command line, and you don’t have to convert (and risk data loss / package corruption) first:mc3

Thanks to user lighans for this great tip!

Advertisements

3 Comments

Filed under How-To

3 responses to “Installing RedHat RPM packages on VectorLinux (and possibly other distros) using Midnight Commander

  1. Alberto Zeni

    Excuse me in advance for my obvious question (I’m a beginner in such things):
    What am I supposed to do if I download the rpm package of OpenOffice? It is a folder containing a lot of rpm files. What is the right procedure to follow with Midnight Commander to install it on my VL 6.0 light? Best Regards, Alberto

    • S

      You have to install the single RPM packages.
      This can be done either by first converting them into TGZ packages with rpm2tgz and then installing them with installpkg:
      root:# rpm2tgz package-version.rpm
      root:# installpkg package-version.tgz

      Or you use Midnight Commander. Start it with mc as root, then browse for the RPM packages, choose package by package and press F2 each time. This will install the package you have chosen.

  2. >Thanks to user lighans for this great tip!

    Well thanks to VL, for this great distro. :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s