LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


View Poll Results: tar to rpm conversion
tar to rpm conversion 5 62.50%
access windows partition in full access mode 2 25.00%
howto squid 2 25.00%
howto pop3/smtp mailsever 1 12.50%
Multiple Choice Poll. Voters: 8. You may not vote on this poll

Reply
  Search this Thread
Old 11-21-2006, 10:08 AM   #1
mohit.chugh
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Rep: Reputation: 0
Unhappy tar to rpm conversion


I am using red hat 9 how can i convert tar files to rpm.
How can i update new kernal from tar files.
How can i access windows partitions in read & write mode.
 
Old 11-21-2006, 01:30 PM   #2
Linville79
Member
 
Registered: Nov 2006
Location: Indiana, U.S.A.
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
Posts: 134

Rep: Reputation: 16
First of all... that's three questions :-)

Second, why are you still using Red Hat 9 and not one of the Fedora Core releases?

Third, here is a link to tell you how to build an rpm out of a tar file: http://kwave.sourceforge.net/doc/en/...rom_targz.html

Fourth, to update your kernel in a Red Hat OS, I would recommend using the yum utility from the command line in which case you would simply type "yum update kernel" at the prompt as root. Otherwise, you will need to untar your tar file and manually compile your kernel using the new code from within that file.

And lastly, here is a link to the instructions from Red Hat on how to access a Windows partition from within Red Hat 9: http://www.redhat.com/docs/manuals/l...a-windows.html

Good Luck!
 
Old 11-21-2006, 01:33 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what is that poll for? and why do people still call it a "kernal"??

a please or thankyou doesn't go amiss either.
 
Old 11-21-2006, 01:37 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Are we sure this is not homework??

.tar is an extension indicating an archive--containing many files. You "unpack" an archive to get all the files (whatever format they are)

The most foolproof way to share data between Windows and Linux is with a FAT32 partition.

Don't bother updating your kernel until:
A: You get more comfortable with the basics.
B: You move to a more modern distro (as already suggested)
 
Old 11-21-2006, 01:40 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by acid_kewpie
what is that poll for? and why do people still call it a "kernal"??
"kernal"???? I thought it was "colonel"......
 
Old 11-22-2006, 08:03 AM   #6
mohit.chugh
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
tar to rpm conversion

Problem still not resolved. I have a new kde xp tar.gz file. i will be able to extract it. But how can we convert those files into rpm in mendrake 10.1 official edition.

Regards
 
Old 11-22-2006, 10:08 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by mohit.chugh
Problem still not resolved. I have a new kde xp tar.gz file. i will be able to extract it. But how can we convert those files into rpm in mendrake 10.1 official edition.

Regards
What format are the files now? .rpm is a file type used by the RPM package manager. Normally, you get SW already packaged into .rpm files--did you try that route.

There is SW to create .rpm packages, but I ma not familiar with it.

To get more help, tell us more about what you are trying to install.
 
Old 11-22-2006, 10:09 AM   #8
Linville79
Member
 
Registered: Nov 2006
Location: Indiana, U.S.A.
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
Posts: 134

Rep: Reputation: 16
Question

Now you're working with Mandrake 10? What happened to Red Hat 9?

Could you please share what your ultimate goal here is?

Your questions seem random to me, unless I'm missing something.
  • A "kde xp tar.gz" file does not necessarily have anything to do with updating your kernel.
  • An RPM built in Red Hat 9 will not necessarily be 100% compatible with a Mandrake OS...both are RPM based (actually Mandrake started out as a modification of Red Hat), but there are enough differences now that not all RPM are equally compatible with both.
  • It's very difficult to provide assistance without a solid understanding of what exactly you are trying to accomplish.
 
Old 11-30-2006, 11:31 AM   #9
DjRakso
LQ Newbie
 
Registered: Nov 2006
Posts: 12

Rep: Reputation: 0
Hi,
I'm currently new to the entire linux system.
But I wanted to create a RPM file. So, my quesiton is what do I need to do?!

I am trying to backup my 3 directories (within those directories there are files & more directories) which have various files.
I can easily put them into a tar.bz2 [using this command: tar cvjf file.tar.bz2 etc home usr]
but when i extract [using this command: tar xfvz file.tar.bz2] i get...
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

And when i try [rpmbuild -ta file.tar.bz2] I get this error:
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)

Please help me out

I wish there was an easy RPM program builder :S
 
Old 11-30-2006, 11:54 AM   #10
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
I'm completely lost here.
 
Old 11-30-2006, 12:10 PM   #11
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Did anyone ever figure out what the point of the poll was? There's no question, its just a bunch of options?
 
Old 12-18-2006, 02:19 AM   #12
drlasterjr
LQ Newbie
 
Registered: Apr 2006
Location: West Long Branch, NJ
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
Personally I would consider converting a tar file into an RPM to generally be a waste of time. A tar archive (Tape ARchive), like a cpio archive, is just a way to collect a set of files into a single file or onto a tape or other piece of media.

RPMs and the UNIX System V package tools extract/store one of more cpio archives with data to create a "package". A tar archive could just as easily be stored in the package. Over the years I have found that tar's options are must easier to use than cpio's options. Both of these utilities operate on the premise that the current directory is the root directory to use for creating or extracting files from the archive. While a package includes "dependency" data this information may not always be correct for all distribution.

If you are planning to distribute software I would create both RPM packages and "tarballs". If you are doing backups of a system I would stick with a "tarball".
 
Old 12-18-2006, 02:34 AM   #13
drlasterjr
LQ Newbie
 
Registered: Apr 2006
Location: West Long Branch, NJ
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
Quote:
Originally Posted by DjRakso

I can easily put them into a tar.bz2 [using this command: tar cvjf file.tar.bz2 etc home usr]
but when i extract [using this command: tar xfvz file.tar.bz2] i get...
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

And when i try [rpmbuild -ta file.tar.bz2] I get this error:
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)
The first error is that you compressed with bzip2 (the j option) and tried to decompress with gzip (the z option).

Building an RPM package generally requires specific information and requirements for the package that is being constructed. Remember RPM packages would generally be used to distribute binaries, such as OpenOffice or FireFox, for other systems. As a part of the install process checks are performed to insure that all of the requirements to use the binaries are satisfied prior to actually installing the RPM package. This would include things such as libraries, or other executables. Doing a system backup, based upon your example tar command, would not normally be done with a package manager.
 
  


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
.tar.gz and .tar.bz and .src.rpm how to rpms gadekishore Linux - Software 2 10-13-2005 12:51 AM
I need RPM to tarball conversion mhelliwell Linux - General 3 03-18-2005 10:11 AM
Is there a way to transform tar.gz into rpm or is there a GUI for tar.gz MElipse Linux - Newbie 2 04-11-2004 04:31 AM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 12:08 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:43 PM.

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