LinuxQuestions.org
Help answer threads with 0 replies.
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 02-19-2010, 02:29 AM   #1
gsvsmanyam
LQ Newbie
 
Registered: Jun 2009
Location: Hyderabad
Distribution: Suse (rarely Redhat & Fedora)
Posts: 14

Rep: Reputation: 0
how to create rpm from tar.gz


Hi,

I need to create an rpm, to decrease time consuming in installations of minor packages. I googled many sites in which they are going theoretically(of course, it should be in that way). Could anyone help me in this regard about what is the step by step process in practical?

I thank in advance for your help.

Regards,
Manyam
 
Old 02-19-2010, 02:45 AM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,679
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
how to create rpm from tar.gz
See if the following helps:

http://kwave.sourceforge.net/doc/en/...rom_targz.html

http://www.linuxscrew.com/2008/06/11...-checkinstall/

http://www.nongnu.org/lpi-manuals/lp...l/ch06s02.html

Last edited by TheIndependentAquarius; 02-19-2010 at 03:07 AM.
 
Old 02-19-2010, 03:13 AM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Try out with Alien software..

Its a good tool to convert from one package format to another.
You may download it from

http://www.icewalkers.com/Linux/Soft...020/Alien.html
 
Old 02-19-2010, 03:16 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,679
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by gsvsmanyam
hi anisha...

my situation is i have the subversion tar.gz file with me. when am trying to build spec file initially am getting the following errors...
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)
Kindly do post the problems in this thread only, not here: http://www.linuxquestions.org/user/anishakaul-445448/

It will be easier for other people to help u this way !
 
Old 02-19-2010, 03:18 AM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,679
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Would you be kind enough to give :

1. the exact name of the tar file u have,
2. the exact steps you followed to get the above errors..
 
Old 02-19-2010, 03:27 AM   #6
gsvsmanyam
LQ Newbie
 
Registered: Jun 2009
Location: Hyderabad
Distribution: Suse (rarely Redhat & Fedora)
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anishakaul View Post
Would you be kind enough to give :

1. the exact name of the tar file u have,
2. the exact steps you followed to get the above errors..
hi...

1.exact name of the file: subversion-1.6.6.tar.gz
2.
a.I copied the tar file to /usr/src/packages/SOURCES
b.copied the subversion.spec to /usr/src/packagages/SPECS
c.edited the .spec file @name, version, release and source
d.and executed rpmbuild -ta subversion-1.6.6.spec
 
Old 02-19-2010, 03:33 AM   #7
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,679
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
See this link w.r.t errors:

http://docs.fedoraproject.org/drafts...n/ch11s02.html

Read this post also and try it according to your needs:

http://www.linuxquestions.org/questi...9/#post1149839

Last edited by TheIndependentAquarius; 02-19-2010 at 03:37 AM.
 
Old 02-19-2010, 03:43 AM   #8
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,679
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
If these steps do not work, why don't you try out the Alien software.. as mentioned by Vinay !
 
Old 02-19-2010, 03:49 AM   #9
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,679
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
See this link also :
http://www.linuxforums.org/forum/red...eb-cp-fc5.html
 
Old 02-19-2010, 04:04 AM   #10
gsvsmanyam
LQ Newbie
 
Registered: Jun 2009
Location: Hyderabad
Distribution: Suse (rarely Redhat & Fedora)
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anishakaul View Post
If these steps do not work, why don't you try out the Alien software.. as mentioned by Vinay !
hi..

I d'loaded and installed alien..
but I don't know how to start with alien
again help please...

Thank you
 
Old 02-19-2010, 04:08 AM   #11
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,679
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Is it a tar file, if so, then do the following in the command prompt :

Code:
tar -xf filename
cd filename
./configure
make
su
make install
 
Old 02-19-2010, 04:11 AM   #12
gsvsmanyam
LQ Newbie
 
Registered: Jun 2009
Location: Hyderabad
Distribution: Suse (rarely Redhat & Fedora)
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anishakaul View Post
Is it a tar file, if so, then do the following in the command prompt :

Code:
tar -xf filename
cd filename
./configure
make
su
make install
hi...

yep...all the things done with alien as they mentioned in INSTALL file

perl Makefile.PL
make
make install

and I want to know how to use alien to build rpm

Thank you
 
Old 02-19-2010, 04:17 AM   #13
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Hi gsvsmanyam,

For every product that you download you will get a README file or INSTALL file or anything similar to this for getting started.

I downloaded alien source and unzipped it i got followin INSTALL FILE
Quote:
To try alien before installing, just run ./alien.pl from this directory. Most
features will work prior to installation.

To install alien, become root and type:
perl Makefile.PL; make; make install

To use alien, you'll need a variety of other software. See the README for
details.
~
which is pretty simple for any one to understad and follow.

After installation you can use
Code:
alien -r <ur pkg name>
TO conver your pkg to RPM..

For additional info
Code:
man alien   OR
alien --help
Hope this helps...

Last edited by vinaytp; 02-19-2010 at 04:20 AM.
 
1 members found this post helpful.
Old 02-19-2010, 04:18 AM   #14
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,679
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
and I want to know how to use alien to build rpm
Read this man page:

http://linux.die.net/man/1/alien

Last edited by TheIndependentAquarius; 02-19-2010 at 04:20 AM.
 
1 members found this post helpful.
Old 02-19-2010, 04:25 AM   #15
gsvsmanyam
LQ Newbie
 
Registered: Jun 2009
Location: Hyderabad
Distribution: Suse (rarely Redhat & Fedora)
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by vinaytp View Post
Hi gsvsmanyam,

For every product that you download you will get a README file or INSTALL file or anything similar to this for getting started.

I downloaded alien source and unzipped it i got followin INSTALL FILE


which is pretty simple for any one to understad and follow.

After installation you can use
Code:
alien -r <ur pkg name>
TO conver your pkg to RPM..

For additional info
Code:
man alien   OR
alien --help
Hope this helps...
YAHOOOOOO...UREKA....

It worked and no arch rpm is generated....
But am not satisfied as I used a third party for that.
I couldn't understand why it isn't worked with 'rpmbuild' to generate the rpm..it makes me unhappy for failing to do it with the original way...

Any way..
THANK YOU ANISHA & VINAY...you are awesome...
am rushing to experiment with that rpm on my SUSE10.3

Thank you
Manyam.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to create an rpm for an ordinary tar.gz file? ginda Red Hat 8 02-24-2010 05:29 AM
How to create .diff.gz/.dsc/.orig.tar.gz from a downloaded tar.gz application? frenchn00b Linux - General 4 05-18-2008 09:09 AM
create an RPM install file from tar? Siljrath Linux - Newbie 8 01-07-2005 01:33 PM
.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


All times are GMT -5. The time now is 07:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration