Sponsored Content
Operating Systems Linux Red Hat How to create an rpm from installed files? Post 302889566 by melixir on Friday 21st of February 2014 02:24:41 PM
Old 02-21-2014
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"

Code:
/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 look like? just to be clear, there's no need to build/compile/configure anything, just to bundle the already installed files into an rpm
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check if rpm is installed

Hi all im hoping someone can help, i want to check if a rpm package is installed, if it is then display one text if not then another text, below is what i have got so far, im am very much a noob at this, as you can probably can see so if possible make it simple, and a big thankyou if you can help... (3 Replies)
Discussion started by: dave123
3 Replies

2. Linux

RPM used to installed to get a partcular command

Hi, I have a query in linux and please find the details of it I have a command in linux and i want to know which rpm has provided that command. ie: if we take ifconfig command ,i want to know what is the rpm package used to get that command. Regards Arun.Kakarla (3 Replies)
Discussion started by: Arun.Kakarla
3 Replies

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

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

5. Red Hat

Trouble with installed / not installed rpm unixODBC/libodbc.so.1

Hey there, i run 1: on my server (RHEL 6) and getting response that the libodbc is not installed. If i use yum for installation, it tells me, there is no package like this ( 2: ). Since in the description of Definiens is mentioned that the Run-time dependency is unixODBC (libodbc.so.1), I assume... (2 Replies)
Discussion started by: rkirsten
2 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. 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

10. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies
XtParseAcceleratorTable(3)					   XT FUNCTIONS 					XtParseAcceleratorTable(3)

NAME
XtParseAcceleratorTable, XtInstallAccelerators, XtInstallAllAccelerators - managing accelerator tables SYNTAX
XtAccelerators XtParseAcceleratorTable(String source); void XtInstallAccelerators(Widget destination, Widget source); void XtInstallAllAccelerators(Widget destination, Widget source); ARGUMENTS
source Specifies the accelerator table to compile. destination Specifies the widget on which the accelerators are to be installed. source Specifies the widget or the root widget of the widget tree from which the accelerators are to come. DESCRIPTION
The XtParseAcceleratorTable function compiles the accelerator table into the opaque internal representation. The XtInstallAccelerators function installs the accelerators from source onto destination by augmenting the destination translations with the source accelerators. If the source display_accelerator method is non-NULL, XtInstallAccelerators calls it with the source widget and a string representation of the accelerator table, which indicates that its accelerators have been installed and that it should display them appropriately. The string representation of the accelerator table is its canonical translation table representation. The XtInstallAllAccelerators function recursively descends the widget tree rooted at source and installs the accelerators of each widget encountered onto destination. A common use os to call XtInstallAllAccelerators and pass the application main window as the source. SEE ALSO
XtParseTranslationTable(1) X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface X Version 11 libXt 1.1.4 XtParseAcceleratorTable(3)
All times are GMT -4. The time now is 11:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy