LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-10-2005, 03:13 PM   #1
dinesh_bakiaraj
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

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

Rep: Reputation: 52
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.
 
  


Reply


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


All times are GMT -5. The time now is 11:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration