Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-10-2004, 12:14 AM   #1
Registered: Jun 2004
Posts: 36

Rep: Reputation: 15
Editing an rpm

ISorry for the "dumb subject". I have an rpm that installs ingres. In the process, it runs a script . What I want to do is edit the script and make it run with the -x or -v options. Is there any way wherein I pull out just this one file, edit it, pack it back in the rpm and install the rpm??

Old 12-10-2004, 12:45 AM   #2
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
You can if its a source RPM

Just get the srpm for that package and install it in your syatem.

This will get extracted in /usr/src/redhat/

Go to the SPEC directory and edit the spec file there.
Other files will be in BUILD directory
The script for pre install and postinstall will be in the spec file

After that rebuild the rpm using rpm -ba specfile
Hope your distro is redhat



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
Editing RPM Database, RedHat 9 karloskar Linux - Software 4 09-16-2004 11:07 AM
rpm -Uvh does not work with header & rpm files in /var/spool/up2date jd_no7 Linux - Software 1 05-17-2004 06:24 PM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 10:22 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 08:19 AM
Help : rpm dependency error when install video driver rpm ymdwxm Linux - Software 1 04-04-2003 05:55 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration