How to create rpm from tar.gz?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to create rpm from tar.gz?
# 1  
Old 08-23-2011
How to create rpm from tar.gz?

I m planning to use puppet to implement organizational linux hardening policies across the linux servers.

To begin with i have downloaded.
puppet-2.7.1.tar.gz and tried some basic configuration to get start with puppet.
Now i want to roll out the puppet but before that i would like to make puppet rpm to suit my environment(as no service is created for puppet/Uninstall process is not known).

How would i accomplish the same?

My distribution are.
Distribution 1: Stripped down version of Oracle Enterprise linux optimized for running ORACLE Virtual Server(OVS)

Code:
# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: OracleVMserver
Description:    Oracle VM server release 2.2.0
Release:        2.2.0
Codename:       n/a

Distribution 2:

Oracle Enterprise linux 5.2
# lsb_release -a
Code:
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Description:    Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)
Release:        5.2
Codename:       Carthage

# 2  
Old 08-23-2011
Look at "checkinstall".
# 3  
Old 08-23-2011
Quote:
Originally Posted by yazu
Look at "checkinstall".
no such file as checkinstall or m i interpreting you wrong.

Code:
# ls -ltr
total 608
-rw-rw-r--  1 503 games   1114 Jun 22 08:10 Rakefile
-rw-rw-r--  1 503 games    697 Jun 22 08:10 LICENSE
-rwxrwxr-x  1 503 games  13985 Jun 22 08:10 install.rb
-rw-rw-r--  1 503 games   1596 Jun 23 04:00 README.md
-rw-rw-r--  1 503 games 548557 Jun 23 04:00 CHANGELOG
drwxrwxr-x 12 503 games   4096 Jun 23 04:05 test
drwxrwxr-x  3 503 games   4096 Aug 23 16:22 tasks
drwxrwxr-x  8 503 games   4096 Aug 23 16:22 spec
drwxrwxr-x  2 503 games   4096 Aug 23 16:22 sbin
drwxrwxr-x  4 503 games   4096 Aug 23 16:22 man
drwxrwxr-x  3 503 games   4096 Aug 23 16:22 lib
drwxrwxr-x 12 503 games   4096 Aug 23 16:22 ext
drwxrwxr-x  4 503 games   4096 Aug 23 16:22 examples
drwxrwxr-x  8 503 games   4096 Aug 23 16:22 conf
drwxrwxr-x  2 503 games   4096 Aug 23 16:22 bin

# 4  
Old 08-23-2011
# 5  
Old 08-23-2011
Here's a howto on building RPMs. Basically, you need a .spec file, which contains the information on package name, version, architecture, prerequisites, and the build instructions themselves.
# 6  
Old 08-24-2011
Quote:
Originally Posted by yazu
I guess its for slackware users only (correct me if m wrong)

---------- Post updated 08-24-11 at 12:06 AM ---------- Previous update was 08-23-11 at 11:55 PM ----------

Quote:
Originally Posted by pinga123
I guess its for slackware users only (correct me if m wrong)
So far i have got this.
Code:
# find /install/ -name "*.spec"
/install/puppet-2.7.1/conf/redhat/puppet.spec
/install/puppet-2.7.1/conf/suse/puppet.spec

What could be next step?
# 7  
Old 08-24-2011
Code:
I guess its for slackware users only (correct me if m wrong)

It works for any debian and rpm distro. I use it for my Ubuntu home-made packages. It's a snap to work with.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

How to create an rpm from installed files?

i would like to package up an rpm from pre-installed files, say i have a program called "widget" installed under "/opt/widget" /opt/widget/bin/* /opt/widget/lib/* /opt/widget/etc/* /opt/widget/log/* and i want to create an rpm from those already installed files, what would the spec file... (2 Replies)
Discussion started by: melixir
2 Replies

2. UNIX for Dummies Questions & Answers

How to create rpm?

I m referring below article for creating rpm. Installation and Setup Rpmbuild Tutorial As per the document i will need rpmdevtools and rpmlint to begin with. However i have yum installed and whenever i run them i get below output. # yum install rpmdevtools rpmlint Setting up Install Process... (0 Replies)
Discussion started by: pinga123
0 Replies

3. Programming

How to create RPM in RHEL5

I would like to package my developed application and deploy it using RPM to my users. Understand that RHEL5 has the following directories created: /usr/src/redhat/BUILD /usr/src/redhat/RPMS /usr/src/redhat/SOURCES /usr/src/redhat/SPECS /usr/src/redhat/SRPMS Using KDevelop as my... (0 Replies)
Discussion started by: tanlccc
0 Replies

4. Red Hat

How to create RPM in RHEL5

I would like to package my developed application and deploy it using RPM to my users. Understand that RHEL5 has the following directories created: /usr/src/redhat/BUILD /usr/src/redhat/RPMS /usr/src/redhat/SOURCES /usr/src/redhat/SPECS /usr/src/redhat/SRPMS Using KDevelop as my... (0 Replies)
Discussion started by: tanlccc
0 Replies

5. Shell Programming and Scripting

How to make RPM not write to RPM database if RPM fails to deploy?

How to make RPM not write to RPM database if RPM fails to deploy? IE I create an rpm spec file that contains the following if then exit 1 fi My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies

6. Red Hat

If I want to create such Installer (Not RPM)

Hi All, I had created a installer (RPM), but later I came across that Netbeans (netbeans-6.9-ml-linux), Flex Builder Linux Alpha (flexbuilder_linux_install_a4_081408.bin) and JDK (jdk-6u20-linux-i586-rpm.bin) dont provide any RPM but they provide a huge binary executable shell script. My... (0 Replies)
Discussion started by: jw_amp
0 Replies

7. Shell Programming and Scripting

Shell Program to create a RPM name

Hi Guru,s/Geek,s I need help to create RPM names from rpms. Example : a2ps-4.14-6.fc10.i386 perl-Email-Find-0.10-2.fc10.noarch directfb-1.2.7-2.fc10.i386 libid3tag-0.15.1b-7.fc10.i386 apr-util-1.3.7-1.fc10.i386 libquicktime-1.0.3-4.fc10.i386 The Desired Output is : a2ps... (2 Replies)
Discussion started by: anand.linux1984
2 Replies

8. Linux

Converting .tar files into RPM

Hi guys, Can anyone tell me, how .tar files could be convert into .RPM package. Hoping soon replay with positive assistance. Thanks. (1 Reply)
Discussion started by: daya.pandit
1 Replies

9. UNIX for Advanced & Expert Users

How to create a Tar of multiple Files in Unix and FTP the tar to Windows.

Hi, On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files. a) /usr/users/oracle/bin b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies

10. HP-UX

tar says: cannot create

Hello, I'm quite new to HP-UX and I stumbeled upon some strange behaviour from tar. I have a script like this: find -mtime $days -type f|xargs tar cvf tarfile.tar and it make me a tar file with files that has been changed in $days. When i run 'tar tf tarfile.tar' it give me output like... (5 Replies)
Discussion started by: oey2000
5 Replies
Login or Register to Ask a Question