Solved

Extract WINRAR ZIP TO LINUX/UNIX

Posted on 2007-04-05
14
4,075 Views
Last Modified: 2012-06-27
I have a large winrar zip file.
How can i unzip it into linux/unix machine?
i have found the utility named rarlinux-3.7.b1.tar.gz (you jst goole it you will find it!!)
but its not converting WINRAR ZIP archieve.
How can i do that?
0
Comment
Question by:theGhost_k8
  • 4
  • 4
  • 2
  • +2
14 Comments
 
LVL 6

Accepted Solution

by:
DocGyver earned 125 total points
ID: 18860176
WinRAR can create both RAR and ZIP files but the command line of RAR/UNRAR for linux only supports the RAR format.

If the file is really in ZIP format then you will need unzip which is often already installed.
0
 
LVL 6

Expert Comment

by:DocGyver
ID: 18860231
On the off chance it isn't installed the version of unzip for linux is almost always the Info-ZIP version found at: http://www.info-zip.org/UnZip.html

Just to be complete, if the file really is in a RAR format then you would use the unrar command in that tar file to extract it.

unrar -x yourarchive.rar
0
 
LVL 21

Author Comment

by:theGhost_k8
ID: 18860253
it is WINRAR ZIP not normal zip.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 1

Expert Comment

by:q_shakur
ID: 18862539
use File Roller Archive Manager if you use gnome or if you have it's library's installed,
you can use this application to create/extract a lot of files type (zip, rar, and the others), take a look for it's features at their website:
http://fileroller.sourceforge.net/features.html
you can download it from the same link..
0
 
LVL 6

Expert Comment

by:DocGyver
ID: 18865450
Guess I'm a dog on a bone now.  I just used the WinRAR GUI to create both a zip file and a rar file and transferred them over to my linux box.  I was able to unzip the foo.zip file with Info-ZIP's unzip version 5.51. The version of WinRAR I used is 3.51.

If you don't mind doing so, please try the following command on your linux box and past the results back here:

od -c  yourzipfile.zip | head

thanks,

Doc..
0
 
LVL 62

Expert Comment

by:gheist
ID: 18875026
http://p7zip.sourceforge.net/

Compresses into standard .zip better than winrar or winzip proprietary formats and extracts both of them (except for maybe some absolutely latest version)
0
 
LVL 21

Author Comment

by:theGhost_k8
ID: 18875075
DocGyver, post your download link of Info-ZIP's unzip version 5.51
0
 
LVL 62

Expert Comment

by:gheist
ID: 18875236
5.52 fixes security problems. Update your ages old linux, and post "uname -a" to get reasonable compileation instructions and oversight of packages installed.

This source does just like DocGyver says:
ftp://ftp.info-zip.org/pub/infozip/src/
(tried 5.52 on FreeBSD)

Please post errors you get form "unzip" on your linux, otherwise I will consider it works.
0
 
LVL 6

Expert Comment

by:DocGyver
ID: 18882185
Various pre-compiled linux binaries can be found at ftp://ftp.info-zip.org/pub/infozip/unix/linux.  If you want the latest version you'll need to grab the source code (gheist's link above) and compile it.

There are some security fixes that are important if you will be installing this on a machine with untrusted users.  If it is just you or people you trust then you can grab the 5.51 from my link

Doc..
0
 
LVL 62

Expert Comment

by:gheist
ID: 20616613
My p7zip mention would contribute in case asker ever gave feedback that unzip cannot decrypt/decode actual zip file. Since no extra feedback from asker I suggest accepting first answer as only one.
0
 
LVL 62

Expert Comment

by:gheist
ID: 20647806
I voted for http:#a18860176 as WinRAR creates pretty compatible ZIP encoding.
0
 
LVL 1

Expert Comment

by:Vee_Mod
ID: 20682776
Force accepted.
Vee_Mod
Community Support Moderator
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
I wrote an article (http://www.experts-exchange.com/articles/2245/Anti-rootkit-software.html) some time ago with a reference to nLite  (http://www.nliteos.com/)slipstreaming software.  I recently changed that link to point to NTLite (https://www.ntl…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question