LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2009, 09:11 PM   #1
adityasharma
Member
 
Registered: Jun 2009
Location: Noida
Distribution: RHEL 5
Posts: 39

Rep: Reputation: 16
Unhappy Hi Winrar is not working Or shall I put it as i am unable to extract a .rar file


Hi All,

I have installed the unrar
But i have 3 files that are .rar formatl
when i type
unrar x -o- filename path

its say the file is not a RAR file
but i think it is as it contact songs i have downloaded.

And with previous experience these file are compressed on .rar

If some one wants the file to check i can send him the same

please help

OS : Fedora 10
------------------------------------------------------
[root@aditya Download]# unrar x -o- A.R.Rahman_Signature.Collection_Disc.1_AvengeR.zip /root/Desktop/

UNRAR 3.71 beta 1 freeware Copyright (c) 1993-2007 Alexander Roshal

A.R.Rahman_Signature.Collection_Disc.1_AvengeR.zip is not RAR archive
No files to extract
-----------------------------------------------------


[root@aditya Download]# unrar x -o- 100__Most_Wanted_Remix__2008__By_Dude_Love.part1.rar /root/Desktop/

UNRAR 3.71 beta 1 freeware Copyright (c) 1993-2007 Alexander Roshal

100__Most_Wanted_Remix__2008__By_Dude_Love.part1.rar is not RAR archive
No files to extract
 
Old 06-27-2009, 09:45 PM   #2
mohaas05
Member
 
Registered: Oct 2008
Posts: 41

Rep: Reputation: 16
Have you tried:

unrar e <path to rar archive>

Also, unrar will not work on zip or any of type of archive. For zip, use unzip. For .tar and .tar.bz2, use tar.


Finally, I see that you are logged in as root. I suggest you create a separate user ASAP. Running as root for non-maintenance tasks can result in unintentional (and potentially damaging) changes to your system.

Last edited by mohaas05; 06-27-2009 at 09:48 PM.
 
Old 06-27-2009, 11:36 PM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You can check if the file really is a rar file by typing this in a terminal
Code:
file <path to rar archive>
cheers,
jdk
 
Old 06-28-2009, 06:26 AM   #4
Angry_Tommy
LQ Newbie
 
Registered: May 2009
Location: Leeds
Distribution: Gentoo, Arch Linux
Posts: 25

Rep: Reputation: 17
install something like linux version of winrar (for example gnome's fileroller). it will much easier that typing commands in terminal.
or install wine, and then run your well known winrar
Code:
wine winrar.exe
it works
 
Old 06-28-2009, 09:49 AM   #5
adityasharma
Member
 
Registered: Jun 2009
Location: Noida
Distribution: RHEL 5
Posts: 39

Original Poster
Rep: Reputation: 16
Thumbs up

Quote:
Originally Posted by mohaas05 View Post
Have you tried:

unrar e <path to rar archive>

Also, unrar will not work on zip or any of type of archive. For zip, use unzip. For .tar and .tar.bz2, use tar.


Finally, I see that you are logged in as root. I suggest you create a separate user ASAP. Running as root for non-maintenance tasks can result in unintentional (and potentially damaging) changes to your system.


hi there i am not sure if i have got this working when you talk about
unrar e <path to rar archive>
i am not sure what need to be done

tried the above
[root@aditya Download]# ll
total 51768
-rw------- 1 root root 5749 2009-06-28 06:19 100__Most_Wanted_Remix__2008__By_Dude_Love.part1.rar
-rw------- 1 root root 5748 2009-06-28 06:19 100__Most_Wanted_Remix__2008__By_Dude_Love.part2.rar
-rw------- 1 root root 5752 2009-06-28 06:19 A.R.Rahman_Signature.Collection_Disc.1_AvengeR.zip

-rw-r--r-- 1 root root 1373751 2009-06-28 06:49 wrar39b3.exe
[root@aditya Download]# unrar e 100__Most_Wanted_Remix__2008__By_Dude_Love.part1.rar <path to rar archive>
-bash: syntax error near unexpected token `newline'
[root@aditya Download]# unrar e <path to rar archive>
-bash: syntax error near unexpected token `newline'
[root@aditya Download]# 100__Most_Wanted_Remix__2008__By_Dude_Love.part1.rar <path to rar archive>
-bash: syntax error near unexpected token `newline'



and yes i have made the user account just doing this root


and i sound so stupid

i am working on Fedora firstly
 
Old 06-28-2009, 09:51 AM   #6
adityasharma
Member
 
Registered: Jun 2009
Location: Noida
Distribution: RHEL 5
Posts: 39

Original Poster
Rep: Reputation: 16
Unhappy

Quote:
Originally Posted by Angry_Tommy View Post
install something like linux version of winrar (for example gnome's fileroller). it will much easier that typing commands in terminal.
or install wine, and then run your well known winrar
Code:
wine winrar.exe
it works
hey there

thank for the help but it does not work
[root@aditya Download]# wine winrar.exe
-bash: wine: command not found
 
Old 06-28-2009, 09:53 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Code:
unrar -e 100__Most_Wanted_Remix__2008__By_Dude_Love.part1.rar
unrar -e 100__Most_Wanted_Remix__2008__By_Dude_Love.part2.rar
 
Old 06-28-2009, 10:04 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
[root@aditya Download]# wine winrar.exe
-bash: wine: command not found
In order to run windows programs in linux you need to install wine
Take a look at
http://www.winehq.org/

However, when you run unrar, it should work, when the archive is correct.
 
Old 06-28-2009, 12:25 PM   #9
adityasharma
Member
 
Registered: Jun 2009
Location: Noida
Distribution: RHEL 5
Posts: 39

Original Poster
Rep: Reputation: 16
Unhappy

Quote:
Originally Posted by repo View Post
In order to run windows programs in linux you need to install wine
Take a look at
http://www.winehq.org/

However, when you run unrar, it should work, when the archive is correct.
hi,

please find the below Error

[root@aditya Download]# unrar e 100__Most_Wanted_Remix__2008__By_Dude_Love.part1.rar

UNRAR 3.71 beta 1 freeware Copyright (c) 1993-2007 Alexander Roshal

100__Most_Wanted_Remix__2008__By_Dude_Love.part1.rar is not RAR archive
No files to extract
[root@aditya Download]# unrar -e 100__Most_Wanted_Remix__2008__By_Dude_Love.part1.rar

UNRAR 3.71 beta 1 freeware Copyright (c) 1993-2007 Alexander Roshal

Usage: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>

<Commands>
e Extract files to current directory
l[t,b] List archive [technical, bare]
p Print file to stdout
t Test archive files
v[t,b] Verbosely list archive [technical,bare]
x Extract files with full path
 
Old 06-28-2009, 12:48 PM   #10
chutsu
Member
 
Registered: Nov 2003
Location: UK
Distribution: Debian Lenny
Posts: 255

Rep: Reputation: 31
No no no...
Using Windows version of Winrar is absolutely not necessary. Unrar is Winrar so if you used unrar and it doesn't extract the rar files, that means the RARs don't work. Either download it again or find some another source for the files.
 
Old 06-29-2009, 04:54 PM   #11
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
I have never had any luck with any of the free un-rar utilities available for Linux.

I have never had a problem with the registered commercial version of Winrar for Linux (I know--the name seems to be an oxymoron). Most of the free versions I've tried (and I've tried everyone I could find) could not unrar the most recent rar format.

The current non-free version is RAR 3.80 beta 3

With the registered version, the unrar command is rar e [filename]. That's rar e, not rar -e.

I move a lot of big files. It's worth the $20.

Here's a partial output of rar --help:


Quote:
Registered to -- Frank Bell --

Usage: rar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>

<Commands>
a Add files to archive
c Add archive comment
cf Add files comment
ch Change archive parameters
cw Write archive comment to file
d Delete files from archive
e Extract files to current directory
(snip)
 
Old 06-29-2009, 05:17 PM   #12
stefan_578
LQ Newbie
 
Registered: Jun 2006
Posts: 25

Rep: Reputation: 15
Hi,

Sometimes I have problems with rar-files.
I use debian, (but I guess all Linux distributions have similar versions of "unrar").

YOur problem may mean just that your file is corrupted.

Secondly it may mean, that the file was compressed using the Windows rar
techniques, which maybe not the same as the Linux one. Winrar is Winrar.

Sometimes the rar-archives do not open because they need second, third, fourth , and hell knows which part
of the whole archive.

Try another rar file with

unrar -e [file].rar

just to see if your distribution works correctly.

I also suggest that you stop doing these operations as root.

hope it helps

Stef
 
Old 06-29-2009, 06:53 PM   #13
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
If there are par files for the rar, you can use gpar2 or pypar to repair the rar archives.
 
Old 06-30-2009, 05:06 AM   #14
Angry_Tommy
LQ Newbie
 
Registered: May 2009
Location: Leeds
Distribution: Gentoo, Arch Linux
Posts: 25

Rep: Reputation: 17
i am to lazy to use terminal every single time and typing all necesarry commands when i want to create archive or unpack something. really if you have somekind of windows manager on your machine use the gui software. For KDE it was called ARK

http://www.arklinux.org/

For GNOME it is fileroller (i am using it all the time. it can do exacly the same thing like original winrar etc.)

http://fileroller.sourceforge.net/

basically install packages like zip unzip rar unrar p7zip arj lha or whatever their names are and you will be able to pack/unpack every archive.
 
Old 06-30-2009, 11:05 AM   #15
ozminh
Member
 
Registered: Aug 2007
Posts: 73

Rep: Reputation: 19
...

Last edited by ozminh; 06-30-2009 at 11:12 AM.
 
  


Reply

Tags
rar


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract rar file kumary Linux - General 3 03-31-2006 03:36 AM
how to extract a .rar file in slackware 10.1? athanatos Slackware 1 05-13-2005 11:42 AM
What program can I use to extract a rar file in linux? gbdavidx Linux - Software 3 11-20-2004 05:30 PM
how to extract winrar files Paxmaster Linux - Software 1 11-04-2004 09:16 PM
how to extract .rar file treotan Linux - Newbie 2 07-16-2004 12:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration