LinuxQuestions.org
Visit Jeremy's Blog.
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 05-11-2009, 02:44 AM   #1
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Rep: Reputation: 21
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
 
Old 05-11-2009, 02:54 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
Old 05-11-2009, 02:57 AM   #3
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
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
 
Old 05-11-2009, 03:02 AM   #4
antonyphilip
LQ Newbie
 
Registered: May 2009
Posts: 11

Rep: Reputation: 0
Quote:
Originally Posted by Ajit Gunge View Post
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
 
Old 05-11-2009, 04:29 AM   #5
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

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

Ajit
 
Old 05-11-2009, 04:33 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
The file has no extension, you need to rename it as .gz, then uncompress it. The gzip tool is a bit picky about that..
 
Old 05-11-2009, 04:49 AM   #7
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Question

Quote:
Originally Posted by chrism01 View Post
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
 
Old 05-11-2009, 04:50 AM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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
 
Old 05-11-2009, 04:52 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by Ajit Gunge View Post
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.
 
Old 05-11-2009, 05:02 AM   #10
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Quote:
Originally Posted by colucix View Post
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
 
Old 05-11-2009, 05:08 AM   #11
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
As per my previous post you have either to compile from source or to build the RPM by yourself (which implies compiling from source).
 
Old 05-11-2009, 05:22 AM   #12
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
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
 
Old 05-11-2009, 05:37 AM   #13
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
You can try (as root)
Code:
rpmbuild -tb ORBit2-2.14.17.tar.gz
 
Old 05-11-2009, 05:43 AM   #14
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Smile rpmbuild command not found

Quote:
Originally Posted by colucix View Post
You can try (as root)
Code:
rpmbuild -tb ORBit2-2.14.17.tar.gz
D Sorry but when I run the command rpmbuild even as root it does not execute and says bash: rpmbuild: command not found.

Ajit
 
Old 05-11-2009, 06:02 AM   #15
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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
 
  


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
Xen Problem while creating guest " Invalid file location given: No such file " mgurnani Linux - Software 0 05-09-2009 03:02 PM
TAR - compresing using 4 cores dlugasx Linux - Software 2 12-12-2008 03:33 AM
wxPython problem: /_core_.so: cannot open shared object file: No such file or directo aregmi Linux - Software 2 06-06-2007 08:53 PM
GDM complain about my .dmrc file although there is no problem with this file. TruongAn Linux - Software 7 04-27-2006 05:18 AM
Linker problem: can't find a file, but the file exists atlep Programming 5 08-16-2004 06:15 AM

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

All times are GMT -5. The time now is 05:21 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