Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



How to extract files from rar archive in ubuntu?

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 10-03-2009
Member
 
Join Date: Jan 2009
Posts: 203
How to extract files from rar archive in ubuntu?

Hey guys!
I am using Ubuntu linux 8.10 for a quite a while. I installed wine so that i can run windows programs in ubuntu. But instead of using windows winrar to extract the files, can i use any other linux software to do that??
Help guys!
Reply With Quote
  #2  
Old 10-03-2009
Member
 
Join Date: Jan 2009
Posts: 710
Re: How to extract files from rar archive in ubuntu?

Visit this thread if you have Fedora :Extract winrar files on Fedora

Common for all Linux, to extract the file from archive type the following code in terminal after navigating to the folder from terminal where the rar file is located :

Code:
$ unrar e file.rar
Reply With Quote
  #3  
Old 10-03-2009
Member
 
Join Date: Jan 2009
Posts: 140
Re: How to extract files from rar archive in ubuntu?

You have to install unrar command before you can use it...

Under Debian Linux, you need to type apt-get as follows to install unrar program:

Code:
# apt-get install unrar
If you are using Fedora core Linux then use yum command as follows :

Code:
# yum install unrar
If you are using FreeBSD, use:

Code:
# pkg_add -v -r unrar
If any of above, methods is not working for you, download binary package from official rarlab site:

Code:
$ cd /tmp
$ wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz
Untar file :

Code:
$ tar -zxvf rarlinux-3.6.0.tar.gz
Both unrar and rar commands are located in rar sub-directory. Just go to rar directory:

Code:
$ cd rar
$ ./unrar
Now copy rar and unrar to /bin directory:

Code:
# cp rar unrar /bin
Reply With Quote
  #4  
Old 10-03-2009
Member
 
Join Date: Jan 2009
Posts: 140
Re: How to extract files from rar archive in ubuntu?

How to use unrar

unrar command supports various options below are common options that you need to use everyday.
Task: To open rar (unpack) file in current directory type command:

Code:
$ unrar e file.rar
Please note that replace file.rar filename with your actual filename.
Task: List (l) file inside rar archive:

Code:
$ unrar l file.rar
Task: To extract (x) files with full path type command:

Code:
$ unrar x file.rar
(D) To test (t) integrity of archive, file type command:
Code:
$ unrar t file.rar
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to extract files from rar archive in ubuntu?"
Thread Thread Starter Forum Replies Last Post
Getting error 'Ubuntu-archive-mirrorserver' while using copy of Ubuntu 11.10 for PPC versions Gyan|dada Operating Systems 6 2 Weeks Ago 07:16 PM
Nintendo 3DS shows no files inside zip archive Calvert Portable Devices 5 02-04-2011 12:00 PM
How do you archive files of different formats in Java ? GOOL Software Development 4 13-01-2011 11:14 PM
Recoving 7 Zip Archive - Cannot open file 'xampp.7z' as archive GodsDead Vista Help 4 23-10-2009 09:26 AM
Zip archive to build files in PHP christheart Software Development 1 24-01-2009 12:53 PM


All times are GMT +5.5. The time now is 12:45 AM.