LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem with Un-compresing a file (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-un-compresing-a-file-725133/)

Ajit Gunge 05-11-2009 02:44 AM

Problem with Un-compresing a file
 
Hi I have downloaded a file from net as I needed a particular RPM for some purpose,so the package that I received was LATEST-IS-2.14.17.
When I run a file command on this file it gives the following output
LATEST-IS-2.14.17: gzip compressed data, from Unix.I want to extract the files from this one and install the RPM on the machine.I dont understand how to proceed from here.
Can someone help me out or suggest what needs to be done?

Thanks,
Ajit

chrism01 05-11-2009 02:54 AM

gunzip LATEST-IS-2.14.17

Run the file cmd again if you only get one file output, so we know what we're dealing with.

Ajit Gunge 05-11-2009 02:57 AM

Hi Chris,
As per your suggestion I ran the command I got the following output.

gunzip LATEST-IS-2.14.17
gunzip: LATEST-IS-2.14.17: unknown suffix -- ignored

Regards,
Ajit

antonyphilip 05-11-2009 03:02 AM

Quote:

Originally Posted by Ajit Gunge (Post 3536752)
Hi Chris,
As per your suggestion I ran the command I got the following output.

gunzip LATEST-IS-2.14.17
gunzip: LATEST-IS-2.14.17: unknown suffix -- ignored

Regards,
Ajit

You can sufix the .gz to this
ie command will be # gunzip LATEST-IS-2.14.17.gz

Ajit Gunge 05-11-2009 04:29 AM

No,its still not working I wasnt unable to un-zip the file.Is there any other way out.

Ajit

i92guboj 05-11-2009 04:33 AM

The file has no extension, you need to rename it as .gz, then uncompress it. The gzip tool is a bit picky about that..

Ajit Gunge 05-11-2009 04:49 AM

Quote:

Originally Posted by chrism01 (Post 3536749)
gunzip LATEST-IS-2.14.17

Run the file cmd again if you only get one file output, so we know what we're dealing with.

When I suffixed the file with .gz and than ran the gunzip LATEST-IS-2.14.17.gz command and later I ran the file coonad on this than I get the following output LATEST-IS-2.14.17: tar archive,but I dont understand where is the rpm file in this.Please let know if I have misunderstood something.

Ajit

colucix 05-11-2009 04:50 AM

The actual name of the file should be ORBit2-2.14.17.tar.gz. The file you have downloaded has been put there just as a reference to the latest version. Either download ORBit2-2.14.17.tar.gz or do simply:
Code:

tar zxvf LATEST-IS-2.14.17

colucix 05-11-2009 04:52 AM

Quote:

Originally Posted by Ajit Gunge (Post 3536837)
but I dont understand where is the rpm file in this.Please let know if I have misunderstood something.

Actually, you got the source code. But since the tarball contains a .spec file, you can try to build the RPM from source by yourself.

Ajit Gunge 05-11-2009 05:02 AM

Quote:

Originally Posted by colucix (Post 3536840)
The actual name of the file should be ORBit2-2.14.17.tar.gz. The file you have downloaded has been put there just as a reference to the latest version. Either download ORBit2-2.14.17.tar.gz or do simply:
Code:

tar zxvf LATEST-IS-2.14.17

Ok Now when I ran the command as per your suggestion the files are unzipped but to actually install the rpm I cannot find the .rpm file in the unzipped files.I want to run a particular command once I install the .rpm file but as the rpm file is not istalled it says that the command is not found.

Ajit

colucix 05-11-2009 05:08 AM

As per my previous post you have either to compile from source or to build the RPM by yourself (which implies compiling from source).

Ajit Gunge 05-11-2009 05:22 AM

Oh thanks.Can you tell me how can I build a rpm from here in short or is there any link that can properly guide me fron here.

Thanks
Ajit

colucix 05-11-2009 05:37 AM

You can try (as root)
Code:

rpmbuild -tb ORBit2-2.14.17.tar.gz

Ajit Gunge 05-11-2009 05:43 AM

rpmbuild command not found
 
Quote:

Originally Posted by colucix (Post 3536876)
You can try (as root)
Code:

rpmbuild -tb ORBit2-2.14.17.tar.gz

D:newbie: Sorry but when I run the command rpmbuild even as root it does not execute and says bash: rpmbuild: command not found.

Ajit

colucix 05-11-2009 06:02 AM

You have to install it. Which linux distribution are you running on?

In any case, you can first try to compile it from source (the same will be done by the rpmbuild process) to see if you miss some dependency. Try
Code:

./configure --prefix=/usr/local
if you don't get any error, try
Code:

make


All times are GMT -5. The time now is 06:16 PM.