Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-10-2005, 02:13 PM   #1
LQ Newbie
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
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

Old 11-11-2005, 12:08 AM   #2
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52

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.


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
Can't create shortcuts to directories on the Desktop! lma10110 Linux - Newbie 1 09-23-2005 02:15 PM
Unable to create directories satimis Linux From Scratch 8 07-02-2005 04:48 AM
Do we need to create the log and db directories by ourselves Niceman2005 Linux - Software 0 11-17-2004 09:08 PM
Can't create directories in /proc keripukki Linux - Software 3 09-03-2004 01:26 PM
Create several directories? AutOPSY Linux - Newbie 3 03-30-2004 07:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:45 PM.

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