Solved

Extract WINRAR ZIP TO LINUX/UNIX

Posted on 2007-04-05
14
4,094 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

 
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

Turn Insights Into Action

You’ve already invested in ITSM tools, chat applications, automation utilities, and more. Fortify these solutions with intelligent communications so you can drive business processes forward.

With xMatters, you'll never miss a beat.

Question has a verified solution.

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

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Fine Tune your automatic Updates for Ubuntu / Debian
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

691 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