LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need to create directories using RPM - Pls let me know (https://www.linuxquestions.org/questions/linux-newbie-8/need-to-create-directories-using-rpm-pls-let-me-know-381869/)

dinesh_bakiaraj 11-10-2005 02:13 PM

Need to create directories using RPM - Pls let me know
 
Hi Everyone,

I have created a binary RPM for my project.
This RPM is to be installed on Linux machine in specific user defined directories.
I have been creating those directories manually everytime before I install the RPM on the target machine.
Is there a way to instruct the RPM itself to create directories and then install the modules respectively.
I would really appreciate any info on the same.

Thank you

Dinesh

tkedwards 11-11-2005 12:08 AM

http://qa.mandrivalinux.com/twiki/bi.../Main/RpmHowTo
http://www.rpm.org/RPM-HOWTO/

You can run any shell command in your RPM spec file, so as a last resort you can just put the necessary mkdir commands in the spec file, perhaps in the %pre section.


All times are GMT -5. The time now is 02:14 PM.