Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 01 Sep 2014, 18:18
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Add a right-click option to extract RPM package
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
don570


Joined: 10 Mar 2010
Posts: 3261
Location: Ontario

PostPosted: 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)

extract_rpm-1.2.pet
Description  Right click option to extract rpm package
pet

 Download 
Filename  extract_rpm-1.2.pet 
Filesize  3.2 KB 
Downloaded  400 Time(s) 
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3261
Location: Ontario

PostPosted: Tue 11 Dec 2012, 21:07    Post subject: new version 1.2  

New version 1.2

It now will extract all rpm packages consistently. Laughing

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 Smile

_____________________________________________
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 1663
Location: wales

PostPosted: Tue 18 Dec 2012, 14:01    Post subject:  

excellent!

cheers don570

_________________
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
LÖVE2d, a collection of 27 lua gameshttp://www.murga-linux.com/puppy/viewtopic.php?t=76739
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2238

PostPosted: Tue 18 Dec 2012, 14:50    Post subject:  

Hmm, I thought I recognized the name exploderpm:
Code:
#!/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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

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


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0529s ][ Queries: 13 (0.0050s) ][ GZIP on ]