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 Wed 30 Jul 2014, 09:46
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
UExtract-3.4 for (mainly, but not only) Slacko
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 8 [108 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Author Message
SFR


Joined: 26 Oct 2011
Posts: 1044

PostPosted: Wed 21 Aug 2013, 12:29    Post subject:  

mikeb wrote:
I find with 7z sfs 3 and 4 are handled but symlinks do not extract correctly..you get a text file containing the path...not sure if that still applies but it is very handy to grab a file even on windows. I considered a workaround but as you mention unsquahfs is probably a better solution.

Yeah, if only 7z could handle symlinks and permissions better, most of other tools could go away!

mikeb wrote:
I built a custom 7za as a static as I found 7z could not find its own shared library under xarchive.... wondered if you had any problems. The sources are quite modular/customizable so in my case I only included formats not covered by standard linux utilities. I also included rar into the static.

The full 7z included in Slacko works ok for me, can create/extract under xarchive (I just had to symlink 7z to 7za, as xarchive has only a wrapper for 7za).

mikeb wrote:
One bonus bunny was having a standard format for use in xarchive so one wrapper could handle many formats. we all love 7zip Smile

Yes, we do! Smile

sc0ttman wrote:
Also, techno made a start at at GUI for tar or something... How is uextract at listing archive contents before unpacking/mounting them?? .. If it can list contents of most filetypes too, then it might be a good project for a gtkdialog frontend..

Would be nice indeed, however I just checked and most of tools displays the contents of archives in a specifically formatted, unique way, so it'd be a nighmare to try to unify it. Laughing

sc0ttman wrote:
Just a quick question, if I keep the static 7z bin i got in akita, will uextract still use exploderpm/rpm2cpio or would i need to remove 7z for that to workl??

Sure, you can keep it. Smile
The sequence of use is 'exploderpm > 7z > rpm2cpio'.

Thanks guys &
Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2226

PostPosted: Wed 21 Aug 2013, 14:02    Post subject:  

exploderpm is a tool I put together -combining altered code from two other tools -it will also extract *.deb archives. It works for rpm's without using rpm2cpio -rpm2cpio fails for certain types of rpm's. It works for *.deb archives without using ar.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1044

PostPosted: Wed 21 Aug 2013, 15:37    Post subject:  

Hey Amigo

Thanks for the tip! Will be default also for .deb (dpkg-deb as a fallback) in the next version.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3220
Location: Ontario

PostPosted: Wed 21 Aug 2013, 16:12    Post subject:  

I put UEtract 1.1 in my rightclick menu utility

http://murga-linux.com/puppy/viewtopic.php?p=720872#720872

I'll try to keep it up-to-date in future.
______________________________________
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1044

PostPosted: Thu 22 Aug 2013, 11:15    Post subject:  

Update, version 1.3

- exploderpm is now default tool for extracting .deb (dpkg-deb as a fallback)
- now can extract multiple audio/video streams from video files
- command line option '-l|--list' has been changed to '-f|--formats'
- added '-l|--list' option that lists contents of an archive, instead of extracting

@Sc0ttman: I implemented this, but like I said - the output varies very much!
Besides I'm not sure if UExtract will be useful as a backend for a GUI, since it's designed for "mass extraction", so it's "all or nothing" - won't unpack specific files from within an archive.
Anyway, feel free to tinker with the code.

BTW, I just noticed that exploderpm fails with some of .rpm pkgs, for example this one.
What's interesting, rpm2cpio can handle those, so I changed the order again to 'rpm2cpio > exploderpm > 7z'.
But this time they're in a chain - if first tool fails, next one is used, and so on.

First post updated!

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8034

PostPosted: Thu 22 Aug 2013, 12:35    Post subject:  

Oh the joy of 'what are they using for rpm this week'. disrpm used to be my regular ...nowadays throw 7zip at it and it seems to get there...better still avoid and use debs

Does you obsession with 'mass extraction' suggest you come from a long line of dentists?

mike
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1044

PostPosted: Thu 22 Aug 2013, 13:36    Post subject:  

Yeah, apparently they must take great delight in making our life a bit more difficult...
Those .rpm are like a digital version of Lemarchand's box. Rolling Eyes
Quote:
Does you obsession with 'mass extraction' suggest you come from a long line of dentists?

Laughing

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2226

PostPosted: Thu 22 Aug 2013, 14:14    Post subject:  

"exploderpm fails with some of .rpm pkgs, for example this one. " Thanks for the heads up on that -and I've fixed it already. Seems fc20 is using 7z algorithm instead of xz -or at least signing the compressed objects as being 7z. The signature matches neither lzma or lzma2 -which is xz.

Here's the quick patch to exploderpm:
Code:

--- ./exploderpm.00   2013-02-19 12:24:39.000000000 +0000
+++ ./exploderpm   2013-08-22 20:17:36.000000000 +0000
@@ -86,7 +86,7 @@
       case "$comp" in
          BZh)      dd if="$pkg" ibs=$o skip=1 2>/dev/null | bunzip2 | cpio --quiet -ivdm ;;
          "$gz"*)   dd if="$pkg" ibs=$o skip=1 2>/dev/null | gunzip | cpio --quiet -ivdm ;;
-         "]"*)     dd if="$pkg" ibs=$o skip=1 2>/dev/null | unxz | cpio --quiet -ivdm ;;
+         "]"*|*"7z"*)     dd if="$pkg" ibs=$o skip=1 2>/dev/null | unxz | cpio --quiet -ivdm ;;
          *)        echo "Unrecognized rpm file: $pkg"; return 1 ;;
       esac
    ;;
@@ -94,7 +94,7 @@
       case "$comp" in
          BZh)      dd if="$pkg" ibs=$o skip=1 2>/dev/null | bunzip2 | cpio --quiet -t$VERBOSE ;;
          "$gz"*)   dd if="$pkg" ibs=$o skip=1 2>/dev/null | gunzip | cpio --quiet -t$VERBOSE ;;
-         "]"*)     dd if="$pkg" ibs=$o skip=1 2>/dev/null | unxz | cpio --quiet -t$VERBOSE ;;
+         "]"*|*"7z"*)     dd if="$pkg" ibs=$o skip=1 2>/dev/null | unxz | cpio --quiet -t$VERBOSE ;;
          *)        echo "Unrecognized rpm file: $pkg"; return 1 ;;
       esac
    ;;



I was also able to handle the mentioned rpm" bash-4.2.45-4.fc20.i686.rpm" with this command:
rpm2cpio *.rpm |unxz |cpio -i -d

BTW, unlzma should not be necessary as xz should be able to handle old-style archives also. lzma(1) didn't have a really reliable way to detect the file magic.

Edit: I'll credit you for finding the problem when I next update exploderpm in src2pkg. Let's see, I saw your full name around here the other day...
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1044

PostPosted: Thu 22 Aug 2013, 14:58    Post subject:  

Thanks, works for me too! Smile

Quote:
I was also able to handle the mentioned rpm" bash-4.2.45-4.fc20.i686.rpm" with this command:
rpm2cpio *.rpm |unxz |cpio -i -d

Interesting... This one doesn't work for me:
Code:
# rpm2cpio bash-4.2.45-4.fc20.i686.rpm | unxz | cpio -id
unxz: (stdin): File format not recognized
cpio: premature end of archive
#

Without unxz is ok. Maybe different versions..?
Code:
# rpm2cpio --help
BusyBox v1.21.0 (2013-02-18 15:57:06 WST) multi-call binary.


Quote:
Let's see, I saw your full name around here the other day...

Try here. Wink

Thanks again &
Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2226

PostPosted: Fri 23 Aug 2013, 02:08    Post subject:  

Yeah, different rpm2cpio versions. I'm using the 'real' one, but not the latest.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4229
Location: Gatineau (Qc), Canada

PostPosted: Fri 23 Aug 2013, 06:14    Post subject:  

And where would one find the full 7zip for Linux, please? Thanks in advance.
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 1044

PostPosted: Fri 23 Aug 2013, 06:55    Post subject:  

musher0 wrote:
And where would one find the full 7zip for Linux, please? Thanks in advance.

Hi Musher0, try in the PPM or here.
_______________

Update, version 1.4

Bugfix release...
After I changed the syntax of ffmpeg/avconv in v1.3, naturally I forgot to test it in Precise and of course (that damned Murphy!) it stopped working there.
Fixed and, this time, tested with several video formats in Slacko and Precise (and FatDog for sure).
Unfortunately in Akita, streams are not being extracted/copied, but re-encoded. Dunno how to fix it ATM.
EDIT: No, I just double-checked and it works ok in Akita, I only had a problem with .mkv file.

Also, the "rpm chain" has been complemented with 'rpm2cpio $ARCHPATH | unxz | cpio -idmv' for compatibility with full/older rpm2cpio.

First post updated!

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.

Last edited by SFR on Fri 23 Aug 2013, 14:43; edited 1 time in total
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5463
Location: Finland

PostPosted: Fri 23 Aug 2013, 08:28    Post subject:  

UExtract-1.4 in test. The rox right click extract with your UExtract looks really great.

I downloaded ubuntu raring universe repo 7z: p7zip-full_9.20.1 deb

I tested tar.bz2 and it was extracted fine. But .deb extraction extracted just control files.

It can be that the p7zip-full_9.20.1.deb was not the right one. Just wanted to post my result. For me control file extraction is fine tool. You get the package dependencies from control file Smile
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1044

PostPosted: Fri 23 Aug 2013, 09:08    Post subject:  

Hey Pemasu, thanks for testing! Smile

Hmm, UExtract fully unpacks all debs I have (not so many, ~5). So...where can I find that black sheep? Wink

BTW, only exploderpm and dpkg-deb are utilized for .deb.
The control files are thanks to exploderpm; dpkg won't extract them.

EDIT: Actually, 7z is rather optional, only necessary if you really need to handle some of these:
*.7z|*.exe|*.dll|*.cpl|*.scr|*.cb7|*.arj|*.cab|*.lza|*.lha|*.lzh|*.mobi|*.xrns|*.wim|*.chm|*.msi|*.dmg|*.vhd|*.fat|*.nsis|*.swm|*.zipx|*.crx|*.tar.7z|*.cpio.7z|*.a|*.ar| ...and finally *.rpm (if nothing else helps).
The rest is "7zip-free". Wink

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2226

PostPosted: Fri 23 Aug 2013, 10:10    Post subject:  

You can also use 'ar' and pipe through gzip/bzip2/xz to just extract the data and not the control. Hmm, I don't find example syntax right now, but it's fairly simple -except for needing to find out which compression method was used, which wastes some time. The exploderpm way is maybe faster. But, anyway, you could have third use-case with ar+decompressor.

I still want to look at your code -although I think you've gone overboard, by now, with what the thing should do -ripping/decoding video/audio would be more appropriate for other tools -IMO.

As an archiving tool, I use an AppDir which I created. My AppDirs are usually drag-n-drop oriented, so if you drop an archive on it, it naturally decompresses it. But, if you drop a file or folder on it, then it offers you options for archive creation. Since I work with tons of sources it is very handy -but it is limited to the most-used archives types for such content.

The 'real' 7-tip is a windows-only, but open-source, program. The homepage links to the '7z' project for linux/bsd support.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 8 [108 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
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.1137s ][ Queries: 12 (0.0080s) ][ GZIP on ]