Previous Thread
Next Thread
Print Thread
Extracting mame218 p7zip file on ubuntu #116821 02/05/20 01:46 PM
Joined: Feb 2014
Posts: 374
G
Golden Child Online Content OP
Senior Member
OP Online Content
Senior Member
G
Joined: Feb 2014
Posts: 374
Hi guys,

I wanted to try the latest 218 and usually I go and get the zip file at https://www.mamedev.org/release.html but with 218 there's something new. Instead of the regular zip file there's a self extracting p7zip file called mame0218s.exe.

But the file manager's archive manager doesn't like it.

So I tried p7zip on it:

$p7zip -d ../mame0218s.exe
/usr/bin/p7zip: ../mame0218s.exe: unknown suffix

I renamed the file to a .7z suffix and l got "Open ERROR: Can not open the file as [7z] archive".


Okay so what did work? The program 7za.

sudo apt install p7zip-full
7za x mame0218s.exe

7za wants to output in the current directory so you may way to set an output directory for example:

$ 7za x mame0218s.exe -o"mame218_extract"


also it seems that "7z" and "7za" are the same program, so if you want to save one character of typing:


$ 7z x mame0218s.exe -o"mame218_extract"

There's some hints here: https://askubuntu.com/questions/219392/how-can-i-uncompress-a-7z-file

Re: Extracting mame218 p7zip file on ubuntu [Re: Golden Child] #116822 02/05/20 07:10 PM
Joined: Feb 2004
Posts: 2,132
Vas Crabb Offline
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,132
You know, you can just read the man page for 7za. The project is called p7zip (portable 7zip), there's no p7zip command-line tool. And as usual, we recommend cloning a tagged revision to get the source for a release.

Re: Extracting mame218 p7zip file on ubuntu [Re: Vas Crabb] #116825 02/05/20 08:03 PM
Joined: Feb 2014
Posts: 374
G
Golden Child Online Content OP
Senior Member
OP Online Content
Senior Member
G
Joined: Feb 2014
Posts: 374
Originally Posted by Vas Crabb
You know, you can just read the man page for 7za. The project is called p7zip (portable 7zip), there's no p7zip command-line tool. And as usual, we recommend cloning a tagged revision to get the source for a release.


Hi Vas,

I never thought to type "man 7za", which does tell me the difference between 7z and 7za:

7z uses plugins to handle archives, so it might be slightly slower than 7za(1) but can
handle more archive formats.

typing "man p7zip" tells me that it's a wrapper script.


Code
p7zip(1)                            General Commands Manual                            p7zip(1)

NAME
       p7zip - Wrapper on 7-Zip file archiver with high compression ratio
...

DESCRIPTION
       7-Zip is a file archiver supporting 7z (that implements LZMA compression algorithm  fea‐
       turing  very  high  compression ratio), LZMA2, XZ, ZIP, Zip64, CAB, RAR (if the non-free
       p7zip-rar package is installed), ARJ, GZIP, BZIP2, TAR, CPIO, RPM, ISO, most  filesystem
       images  and  DEB  formats.  Compression ratio in the new 7z format is 30-50% better than
       ratio in ZIP format.

       p7zip is a gzip-like CLI wrapper script for 7-Zip, and handles only the 7z  format  (the
       native format of 7-Zip), internally executing either 7za(1) or 7zr(1) command.



I can see why you'd switch to 7zip if it's 30-50% more compression.

It's just I've never really used 7z files before. I searched ubuntu software for 7zip and I see Xarchiver supports 7z files but it won't open the .exe self extracting file.

P7zip-desktop from ubuntu software will open the .exe file with no trouble.

Ubuntu's Archive Manager doesn't like the .exe file but does like .7z files.


Moderated by  R. Belmont 

Who's Online Now
3 registered members (Carbon, R. Belmont, Golden Child), 164 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,763
Posts115,157
Members4,889
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3