April 25, 2024, 01:12:47 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Source (tar) file to rpm  (Read 3843 times)

Offline klakshman03

  • Tux Awared
  • **
  • Posts: 35
Source (tar) file to rpm
« on: October 06, 2007, 08:50:09 AM »
  hi grp
  Can anybody tell me   how to convert a source file which is  in tar.gz format  to .rpm format


  Thanks
laxmaN

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: Source (tar) file to rpm
« Reply #1 on: October 07, 2007, 08:52:11 PM »
Why you want to do that ?
Creating RPM packages requires little advance knowledge in linux
http://genetikayos.com/code/repos/rpm-tutorial/trunk/rpm-tutorial.html

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Re: Source (tar) file to rpm
« Reply #2 on: December 15, 2007, 02:09:27 AM »
1. Always use Maximum RPM tutorial as your refrence.

2. Use "rpmbuild" utility. Also if that source tarball comes with the RPM specfile "application-file.spec". Then, you are very luck. Else, you need to write one. :)

Take note that, normally if you use source RPM packages (i.e. app-1.2.3.src.i386.rpm)  from the distro itself. You are 100% lucky that it has already the spce files.