Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-29-2007, 03:17 AM
|
#1
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Rep:
|
Decompressing a .gz file
I downloaded the following file. It is a free one.
unrar-linux-x64.gz
This file is a command line freeware x64 Linux UnRar.
http://www.rarlab.com/rar_add.htm
I created a directory named 'Winrar for Linux' and placed the file inside this folder.
-----------------------------------------------------------
[root@ Winrar for Linux]# tar -xvzf 'unrar-linux-x64.gz'
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
[root@ Winrar for Linux]#
-----------------------------------------------------------
Why couldn't I decompress the file?
It doesn't accept the command ' tar -xvzf ... ' .
|
|
|
06-29-2007, 03:25 AM
|
#2
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep:
|
That tar command would work if the file was a tar archive that was compressed with GZip (.tar.gz). Since it's not a tar archive (there's no '.tar'), you can't use tar It's just gzipped file, so use
Code:
gunzip unrar-linux-x64.gz
and it should be un-gzipped.
EDIT: just as an example, here would be the similar commands if the file was just a tar file, or if it was gzipped tar or if it was bzip2'ed tar:
for unrar-linux-x64.tar .gz you would use
Code:
tar -xvzf unrar-linux-x64.tar.gz
The blue v means "verbose output", you'll see what's being done. You can leave it off, and get less output. Red z tells 'tar' that the tar archive is also compressed with gzip, and before untarring the file it should be uncompressed with gunzip.
for unrar-linux-x64.tar .bz2 (compressed using bzip2 instead of gzip) you would use
Code:
tar -xvjf unrar-linux-x64.tar.bz2
Notice the red letter: now there's 'j' instead of 'z', which tells tar that the file is compressed with bzip2 and should be uncompressed with bunzip2 before untarring.
for unrar-linux-x64.tar.Z (compressed, again) you would use
Code:
tar -xvZf unrar-linux-x64.tar.Z
Now notice the capital Z. That's for .Z archives.
for unrar-linux-x64 .tar you "only" use
Code:
tar -xvf unrar-linux-x64.tar
Here note that 'x' tells tar to unarchive the file (not archive!), and that the last command option letter is 'f' right after which you must give the filename. Yes, it stands for 'file'.
Last edited by b0uncer; 06-29-2007 at 04:03 AM.
|
|
|
06-29-2007, 03:35 AM
|
#3
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
|
[root@ Winrar for Linux]# ls
unrar-linux-x64
[root@Winrar for Linux]#
Yes, it worked. It just created a file.
I want to install this program.
Usually I must write 'make' , 'make install' ,etc.
How can I install this program?
|
|
|
06-29-2007, 04:00 AM
|
#4
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep:
|
Code:
file unrar-linux-x64
should tell what kind of file it is. Probably somekind of an "executable" which means you don't install it in any special way, you just run that executable. For example
Code:
./unrar-linux-x64 somefile.rar
If you want to be able to use it without typing the full path in, no matter where you are in the directory tree, you can copy the file under /usr/bin/ for example (because that's one place where the shell automatically checks for executables, if no path is given, just the executable name). You'll need to be root to do that:
Code:
su
cp ./unrar-linux-x64 /usr/bin/
chmod a+rx /usr/bin/unrar-linux-x64
exit
..and that would copy the file to /usr/bin, then set a+rx which means everybody (a) can read (r) and execute (x) the file.
'./configure', 'make' and 'make install' are typical steps to compile a program from source code and install it. In this case you have no source code so you don't have to compile it. 'configure' is actually a script that prepares the source code for compilation on this system; 'make' then compiles the code according to the rules in Makefile, and 'make install' (which usually needs to be run as root) then copies the compiled files into their wanted places in the system so libraries and executables etc. are where they should be for everyone to use.
Last edited by b0uncer; 06-29-2007 at 04:02 AM.
|
|
|
06-29-2007, 05:55 AM
|
#5
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
|
Thanks bouncer for the replies
It seems you are well aware of all those formats. For me it is a jungle of formats.
--------------------------------------------------------------------------------
[root@Winrar for Linux]# file 'unrar-linux-x64'
unrar-linux-x64: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), for GNU/Linux 2.4.0, stripped
[root@ Winrar for Linux]#
|
|
|
06-29-2007, 06:27 AM
|
#6
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
|
sp2sc-xiso.r37
sp2sc-xiso.r38
sp2sc-xiso.r39
sp2sc-xiso.r40
sp2sc-xiso.r41
sp2sc-xiso.r42
sp2sc-xiso.r43
sp2sc-xiso.rar
I copied a CD on to a folder. It has a lot of 'RAR' files. I want to use this program to open the last file of the above.
|
|
|
06-29-2007, 06:47 AM
|
#7
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596
Rep:
|
What is the output of :
unrar-linux-x64 -help
|
|
|
06-29-2007, 06:47 AM
|
#8
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
First of all, you may have already have had an unrar package available.
To unrar the files, you will need the sp2sc-xiso.r00 - sp2sc-xiso.r36 files as well. Then you run the command:
unrar x sp2sc-xiso.rar.
Sometimes the archives look like file.part01.rar .. file.part09.rar. If that is the case, use "unrar x file.part01.rar".
|
|
|
06-29-2007, 06:54 AM
|
#9
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
|
[root@ Winrar for Linux]# cp ./unrar-linux-x64 /usr/bin/
[root@ Winrar for Linux]# chmod a+rx /usr/bin/unrar-linux-x64
[root@ Winrar for Linux]# exit
exit
[Nissanka@~]$
The above worked fine.
---------------------------------------------------------------------
jschiwal
I am still running Fedora Core5. How do I know whether I have the unrar package?
If it is on my system, how do I use it.
|
|
|
06-29-2007, 06:58 AM
|
#10
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
|
Agrouf
Here is the output:
-------------------------------------------------------
[Nissanka@ ~]$ unrar-linux-x64 -help
UNRAR 3.30 beta 4 freeware Copyright (c) 1993-2004 Eugene 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
<Switches>
- Stop switches scanning
ad Append archive name to destination path
ap<path> Set path inside archive
av- Disable authenticity verification check
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
dh Open shared files
ep Exclude paths from names
f Freshen files
idp Disable percentage display
ierr Send all messages to stderr
inul Disable all messages
kb Keep broken extracted files
o+ Overwrite existing files
o- Do not overwrite existing files
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
ri<P>[:<S>] Set priority (0-default,1-min..15-max) and sleep time in ms
ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format
tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format
tn<time> Process files newer than <time>
to<time> Process files older than <time>
ts<m,c,a>[N] Save or restore file time (modification, creation, access)
u Update files
v List all volumes
ver[n] File version control
vp Pause before each volume
x<file> Exclude specified file
x@ Read file names to exclude from stdin
x@<list> Exclude files in specified list file
y Assume Yes on all queries
[Nissanka@ ~]$
---------------------------------------------------
|
|
|
06-29-2007, 08:40 AM
|
#11
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
|
Our friend jschiwal touched on the subject of unrar.
I don't know about it.
Please tell me.
There are 44 files altogether.
-------------------------------------------------------------
sp2sc-xiso.r00
sp2sc-xiso.r01
sp2sc-xiso.r02
...........
...........
sp2sc-xiso.r42
sp2sc-xiso.r43
sp2sc-xiso.rar
|
|
|
06-29-2007, 12:14 PM
|
#12
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
Jschiwal already told you how to do it in post #8................
unrar x sp2sc-xiso.rar
Or if unrar is named a bit different: unrar-linux-x64 x sp2sc-xiso.rar
This information is also present in the output you posted in post #10
|
|
|
06-29-2007, 02:27 PM
|
#13
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
|
Thanks druuna. I remember you very well. You have been with us for a long time. I am proud of your prowess in Open Source.
---------------------------------------
[root@ Windows2]# unrar x sp2sc-xiso.rar
UNRAR 3.60 freeware Copyright (c) 1993-2006 Alexander Roshal
Extracting from sp2sc-xiso.rar
Extracting sp2sc-xiso.bin
Extracting from sp2sc-xiso.r00
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r01
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r02
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r03
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r04
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r05
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r06
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r07
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r08
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r09
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r10
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r11
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r12
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r13
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r14
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r15
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r16
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r17
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r18
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r19
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r20
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r21
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r22
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r23
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r24
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r25
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r26
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r27
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r28
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r29
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r30
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r31
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r32
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r33
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r34
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r35
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r36
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r37
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r38
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r39
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r40
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r41
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r42
... sp2sc-xiso.bin
Extracting from sp2sc-xiso.r43
... sp2sc-xiso.bin OK
Extracting sp2sc-xiso.cue OK
Extracting sp2sc-xiso.nfo OK
All OK
[root@ Windows2]#
--------------------------------------------------
The aim is to burn a file to get an .iso file; because .iso is a bootable one. When I have it on a CD, I could restart the computer with the CD which has the .iso file. I am using K3b program for burning.
I believe the 'sp2sc-xiso.bin' is the correct one. When I burnt it, I would get an .iso file.
Please tell me if I am wrong.
[root@ Windows2]# ls -l sp2sc-xiso.bin
-rw-r--r-- 1 root root 736655808 Mar 15 09:54 sp2sc-xiso.bin
[root@ Windows2]#
|
|
|
06-29-2007, 02:33 PM
|
#14
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
When you go to burn an image in k3b, click on the drop down box on the filetype filter, and select "cue files". The cue file will be used then to load in and burn the .bin file.
|
|
|
06-29-2007, 02:41 PM
|
#15
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
First: Would you please stop posting irrelevant stuff (in this case the [long] output of the unrar command). You've been asked this before.
What's the point in showing us that it worked, just tell us it did and (if needed) ask the next question.
Ok, about burning the bin file: You state that you use k3b, if that is the case, nothing special needs to be done. Just start k3b and burn the bin file to disk.
Hope this helps.
|
|
|
All times are GMT -5. The time now is 07:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|