Is there any way to build the file structure of the target installation without manually making directories in rpm spec file?

Solution Unverified - Updated -

Issue

  • Do rpms have the ability to build the file structure of the target installation without manually making directories and copying files from the build directory in the %install script.
  • In Solaris and HP-UX have this capability with the psf files (in those, the file list is what the package manager uses to build the directory structure of the installation).
  • Example from an HP psf file:
file -o root -g sys -m 0500 -t s /opt/$BASELINE_YEAR/bin/MSB_UNIX_WRAPPER.ksh /opt/$BASELINE_YEAR/bin/SWHPMSB_UNIX_WRAPPER.ksh
file -o root -g sys -m 0500 -t s /opt/$BASELINE_YEAR/bin/MSBCopyData.pl /opt/$BASELINE_YEAR/bin/SWHPMSBCopyData.pl
file -o root -g sys -m 0500 -t s /opt/$BASELINE_YEAR/bin/MSBcontext.pl /opt/$BASELINE_YEAR/bin/SWHPMSBcontext.pl
file -o root -g sys -m 0500 -t s /opt/$BASELINE_YEAR/bin/MSBregister.pl /opt/$BASELINE_YEAR/bin/SWHPMSBregister.pl
file -o root -g sys -m 0500 -t s /opt/$BASELINE_YEAR/bin/MSBregister.pl /opt/$BASELINE_YEAR/bin/SWHPMSBregister.ksh

Environment

  • Red Hat Enterprise Linux 5/6/7
  • rpm

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content