Sponsored Content
Full Discussion: How to create rpm?
Top Forums UNIX for Dummies Questions & Answers How to create rpm? Post 302604777 by pinga123 on Tuesday 6th of March 2012 01:36:02 AM
Old 03-06-2012
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.
Code:
# yum install rpmdevtools rpmlint
Setting up Install Process
Parsing package install arguments
No package rpmdevtools available.
No package rpmlint available.
Nothing to do

However i tried using rpm-devel package.
Code:
# yum install rpm-devel
Setting up Install Process
Parsing package install arguments
Package rpm-devel-4.4.2.3-9.el5.i386 already installed and latest version
Nothing to do

Is rpm-devel and rpmdevtools different as i m not able to execute other commands such as rpmdev-setuptree.


Distribution details.
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

Code:
# uname -r
2.6.18-128.2.1.4.9.el5xen

m i heading in right direction?

Last edited by pinga123; 03-06-2012 at 04:52 AM..
 

10 More Discussions You Might Find Interesting

1. Linux

Converting source rpm to binary rpm

Hi, I need to install an rpm file,but I only have '.src.rpm' version of it. I want to convert it to a binary rpm. so I tried this rpm --rebuild somethin.src.rpm But I am gettin '--rebuild:Invalid option' as output Is there another way to rebuild source rpm.? Thanks in... (2 Replies)
Discussion started by: eamani_sun
2 Replies

2. 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

3. Shell Programming and Scripting

Extract RPM name from path to .rpm file

It's the end of the day and I just can't get my head around this. I'm trying to extract just the name of the RPM from the path to a .rpm file. So from: /home/me/rpm/RPMS/i386/nagios-our-plugins-1.2-6.i386.rpmI need to extract 'nagios-our-plugins'. I can't get the awk syntax right: awk '{... (5 Replies)
Discussion started by: aussieos
5 Replies

4. 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

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. UNIX for Dummies Questions & Answers

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... (7 Replies)
Discussion started by: pinga123
7 Replies

7. 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

8. 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

9. AIX

Rpm issue with autoconf-2.63-1.AIX6.1.noarch.rpm

dears i am trying to install the autoconf-2.63-1.aix6.1.noarch.rpm but its shows the below error message . P700_dev/svn/dependencies>rpm -i autoconf-2.63-1.aix6.1.noarch.rpm error: failed dependencies: m4 is needed by autoconf-2.63-1 P700_dev/svn/dependencies> (6 Replies)
Discussion started by: thecobra151
6 Replies

10. 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
YUM-VERSIONLOCK(1)						   User Manuals 						YUM-VERSIONLOCK(1)

NAME
yum-versionlock - Version lock rpm packages SYNOPSIS
yum-versionlock [ package-name [ package-name]] ... DESCRIPTION
yum-versionlock(1) is a Yum plugin that takes a set of name/versions for packages and excludes all other versions of those packages (including optionally following obsoletes). This allows you to protect packages from being updated by newer versions. The plugin provides a command "versionlock" which allows you to view and edit the list of locked packages easily. yum versionlock add <package-wildcard>... Add a versionlock for all of the packages in the rpmdb matching the given wildcards. yum versionlock exclude <package-wildcard>... Add a exclude (within versionlock) for the latest versions of the packages in the available repos. matching the given wildcards. yum ver- sionlock list List the current versionlock entries. yum versionlock delete <entry-wildcard>... Remove any matching versionlock entries. yum versionlock clear Remove all versionlock entries. FILES
/etc/yum/pluginconf.d/versionlock.conf The system wide configuration file. See yum-versionlock.conf(5) for more information. /etc/yum/pluginconf.d/versionlock.list The default place to put package version lock information (one package and version per. line). The file takes entries in the follow- ing format EPOCH:NAME-VERSION-RELEASE.ARCH See rpm(8) for more information on custom query formats. If the package does not have an EPOCH the number will default to 0. BUGS
There are of course no bugs, but should you find any, you should first consult the FAQ section on http://yum.baseurl.org/wiki/Faq and if unsuccessful in finding a resolution contact the mailing list: yum-devel@lists.baseurl.org. To file a bug use http://bugzilla.redhat.com for Fedora/RHEL/Centos related bugs and http://yum.baseurl.org/report for all other bugs. AVAILABILITY
yum-versionlock is available via: # yum install yum-versionlock AUTHORS
Panu Matilainen <pmatilai@laiskiainen.org> James Antill <james@and.org> Documentation modified by: Gerhardus Geldenhuis <gerhardus.geldenhuis@gmail.com> SEE ALSO
yum(1) 28 December 2009 YUM-VERSIONLOCK(1)
All times are GMT -4. The time now is 10:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy