Add a right-click option to extract RPM package

Miscellaneous tools
Post Reply
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

Add a right-click option to extract RPM package

#1 Post by don570 »

Right click option to extract rpm package

Requirement: Rox or Thunar file manager
I have added 'exploderpm' to the package even though recent
puppies have this small utility already.

Here's a simple script I call extract_rpm-1.0.pet

It's only purpose is to put a right click menu option
to extract a rpm package (it must have a .rpm extension)

Just right click on file and choose 'Extract here'.
(Thunar uses 'SendTo' menu)

The original file will remain. A new folder will be created.
There will be a warning if a similar name is in use. Paths will be
preserved . (A rpm source package will be converted to gzip package)

Image
Attachments
extract_rpm-1.2.pet
Right click option to extract rpm package
(3.2 KiB) Downloaded 893 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

new version 1.2

#2 Post by don570 »

New version 1.2

It now will extract all rpm packages consistently. :lol:

I have added 'exploderpm' to the package even though recent
puppies have this small utility already.

It will use 'exploderpm' rather than rpm2cpio to do the extraction.

Much better :)

_____________________________________________

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#3 Post by 666philb »

excellent!

cheers don570
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#4 Post by amigo »

Hmm, I thought I recognized the name exploderpm:

Code: Select all

#!/bin/sh
# exploderpm
# VERSION 0.2
# Copyright 2009-2010 Gilbert Ashley <amigo@ibiblio.org>
# The code for explode_rpm was originally written by Jeff Johnson
# and modified by Lasse Collin <lasse.collin@tukaani.org>
# Copyright (C) 2005, 2006 Lasse Collin <lasse.collin@tukaani.org>
# code for handling debian archives taken from disrpm
# released under the Gnu General Public License (GPL)
# (c) bjdouma@xs4all.nl VER="v1.5, october 2004"
#110705 bk: added -i install option for rpm.
What I did there was combine and modify some code from two different programs. The code from Lasse Collin helped make it possible to decompress modern rpm's which use lzma/xz compression. The resulting program works even better than the 'official' rpm2cpio. I use exploderpm as part of my 'src2pkg' program.
One caveat, I think that newer *.deb packages are now using xz instead of gzip for the main payload -looks like I need to upgrade the code a bit for that.

Post Reply