Linux - SoftwareThis 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
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.
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.
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.
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.
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.
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.
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
Posts: 134
Rep:
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.
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)
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".
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.