Posted: Mon 10 Dec 2012, 16:30 Post subject:
Add a right-click option to extract RPM package
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)
#!/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.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum