LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-24-2008, 01:57 AM   #1
Flipzo
LQ Newbie
 
Registered: Sep 2008
Posts: 9

Rep: Reputation: 0
How to Unrar on Linux?


I have a CentOS 5 Server with Gnome on it. I tried to unrar files using the archive manager but it doesn't work. Can somebody teach me how to unrar on gnome? thanks
 
Old 09-24-2008, 02:05 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You have to install unrar (rar is a proprietary archive format, fortunately there is a free unrar program).

yum install unrar-free
 
Old 09-24-2008, 02:09 AM   #3
Flipzo
LQ Newbie
 
Registered: Sep 2008
Posts: 9

Original Poster
Rep: Reputation: 0
I tried to type in the terminal

# yum install unrar-free

something came out but at the end it says something like "no package unrar available"

I'm running gnome and I wanted to open rar files using the archive manager, how can I do that? thanks
 
Old 09-24-2008, 02:48 AM   #4
hoodooman
Member
 
Registered: Oct 2006
Location: Stirling in Scotland
Distribution: Slackware 13.37 64 bit
Posts: 297

Rep: Reputation: 42
unrar on linux

unrar rpms are available here.http://www.rarlab.com/rar_add.htm .once installed your archive manager should find it allow you to use it.Or you could use it on the command lind with unrar e nameoffile.rar.
 
Old 09-24-2008, 04:40 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Why not try p7zip, it can unrar.
 
Old 09-24-2008, 04:52 AM   #6
Flipzo
LQ Newbie
 
Registered: Sep 2008
Posts: 9

Original Poster
Rep: Reputation: 0
p7zip? The problem is, I don't know how to install applications on my gnome, I don't know what to do with install.sh files, I double click them and nothing is happening, I tried adding software but still no luck. I'm a total linux newbie.. How do i Install p7zip anyway? Thanks..
 
Old 09-24-2008, 10:51 AM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, I believe CentOS is a clone of Redhat EL is it not ? If so, just either add a new repo and use 'yum' to install p7zip, or download the package and install it locally. Here's one repo that has it:
http://dag.wieers.com/rpm/packages/p7zip/
 
Old 09-24-2008, 11:22 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Look at the sticky at the top of the Fedora forum. The same livnia repository may have an unrar package. Also look in the http://rpm.pbone.net website. Filter the results for your distro and see if you can download a package for your distro version.

The "rar" package may be available from livnia or another repository as well. It uses non GPL code and so can't be distributed by RedHat.

Also, please learn how to use your package manager and the rpm command. For an install script or a tarball, you need to install from the console. And the first step is usually to read the README file. That is what it's there for.

Last edited by jschiwal; 09-24-2008 at 11:28 AM.
 
Old 09-24-2008, 02:11 PM   #9
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
brother like winrar ,rarlinux is also available in RARLAB.
check it here

http://rarlab.com/download.htm
 
Old 09-24-2008, 02:36 PM   #10
loperz7
Member
 
Registered: Sep 2008
Posts: 53

Rep: Reputation: 15
when you go to a terminal and write the path to the file including the file, it should run it (the .sh file).
You should be able to choose "run it in a terminal" when double clicking a working sh file (not just some file that someone added .sh to it) - a selection should pop up.

Debian

Last edited by loperz7; 10-10-2008 at 05:17 AM.
 
Old 09-25-2008, 01:23 AM   #11
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
something came out but at the end it says something like "no package unrar[-free] available"
Drat, I'd have hoped the free package would be available in your default repos. possibly it is just called something else.

Have a look at the unofficial fedora faq for in formation on how to set up a decent set of repos for yum.

Once you've done that, install packagekit

yum install PackageKit

... this will give you a gui for yum. you can use the gui to search the repos for an unrar package.

OR: you can ask the person who supplied the rar package to please repack in a free/libre format - like gzip.
 
Old 04-10-2013, 02:03 PM   #12
jsclarke
LQ Newbie
 
Registered: Jul 2010
Location: Scotland
Distribution: Fedora 13,18, puppy,raspbian
Posts: 2

Rep: Reputation: 0
Any distro using yum or rpm (Fedora/RedHat, CentOS etc) as package manager should be able to use the RPMFusion repos.

Visit www.rpmfusion.org and follow the instructions. Everything I have ever needed has been available there.
 
Old 04-10-2013, 03:26 PM   #13
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
RHEL/CentOS 5.x

For x86
Code:
# wget ftp://rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/unrar-4.0.7-1.el5.rf.i386.rpm
# rpm -Uvh unrar-4.0.7-1.el5.rf.i386.rpm
For x86_64
Code:
# wget ftp://rpmfind.net/linux/dag/redhat/el5/en/x86_64/dag/RPMS/unrar-4.0.7-1.el5.rf.x86_64.rpm
# rpm -Uvh unrar-4.0.7-1.el5.rf.x86_64.rpm

RHEL/CentOS 6.x

For x86
Code:
# wget ftp://rpmfind.net/linux/dag/redhat/el6/en/i386/dag/RPMS/unrar-4.0.7-1.el6.rf.i686.rpm
# rpm -Uvh unrar-4.0.7-1.el6.rf.i686.rpm
For x86_64
Code:
# wget ftp://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/unrar-4.0.7-1.el6.rf.x86_64.rpm
# rpm -Uvh unrar-4.0.7-1.el6.rf.x86_64.rpm
To extract .rar file

In GUI use nautilus(explorer).

In terminal:

To extract files:
Code:
$ unrar x file.rar
To list the files:
Code:
$ unrar l file.rar
To test the integrity:
Code:
$ unrar t file.rar

Last edited by Madhu Desai; 04-10-2013 at 04:04 PM.
 
Old 04-10-2013, 09:09 PM   #14
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,341
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
You all realize that this tread dates from 2008. A lot has changed in the world of Linux and rar since then.

(I've done the same thing myself--don't feel bad.)
 
Old 04-10-2013, 10:56 PM   #15
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by frankbell View Post
You all realize that this tread dates from 2008.
D'oh!
 
  


Reply



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
Having trouble with unrar. Can someone Help me out? p0xy Debian 5 09-15-2007 09:49 AM
I can not UnRAR my .rar file in Linux. hello_curator Linux - Software 3 02-19-2007 03:28 PM
Can not unrar Christoffer81 Linux - Newbie 3 06-15-2004 08:38 AM
How to use unrar? JunZ Linux - Software 1 06-05-2004 08:36 PM
Unrar 3.x for Slackware 3.5 Brett-NZ Linux - Newbie 0 10-07-2003 10:56 PM

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

All times are GMT -5. The time now is 04:30 AM.

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