LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-21-2005, 01:52 PM   #1
zhouxjgester
LQ Newbie
 
Registered: Aug 2005
Location: canada
Posts: 8

Rep: Reputation: 0
Some specific questions about RPM programming


I found I introduced many specific usage of RPM. I cannot find answers for these questions elsewhere. It looks like nobody is using RPM in my way?

1) In rpm scripts, can I know my current dbpath I specified in command line?

2) When I'm installing a binary using RPM. I'm actually overwriting the exist binary. I found the process keeps running even it has been replaced by installer. Will that be any potential issue? Is that possible in my installer to detect the process is running and kill it?

3) Is that possible to detect what I've installed on this host? i.e. it likes to run "rpm -qa" in %pre. But I need to know my current dbpath.

4) Is that possible for me to know the packaging date of my current package in %pre or %post? I want to write some logic in %pre to compare the binary's date which I will replace with the binary I will use for replace (the binary in my current package).
 
  


Reply



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
Why specific user/group for rpm installation alanbe Linux - Newbie 1 03-02-2005 04:27 PM
How to install an RPM to a specific Directory GUIPenguin Linux - Newbie 4 08-30-2004 06:36 PM
Kernel programming - rerouting packets to a specific interface Solemn Phoenix Linux - Networking 2 08-16-2004 12:15 PM
rpm path confusion - distro specific rpm? gandalf2041 Linux - Software 2 04-08-2004 02:19 PM
specific source code and RPM for distro bshelton Linux - General 2 09-15-2003 08:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:34 AM.

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