Solved

Extract WINRAR ZIP TO LINUX/UNIX

Posted on 2007-04-05
14
4,086 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

749 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