On Wed, 2011-07-20 at 14:33 +0530, kali c wrote: > Hi, > > I have created a SPEC file that contains the lines, > > %files > /usr/bin/myFile1 > /usr/bin/myFile2 > > And I can build the SPEC file without any errors. But after installing the > RPM package through "yum", the files reside as such specified in the files > section. > By that I mean, myFile1 resides in /usr/bin and myFile2 resides in /usr/bin, > rightly so. > > But if while installing can i specify some path, so that it resides in the > specified directory. > > Say can I specify a directory /disk1/myFolder so that the installed files > will be like, /disk1/myFolder/myFile1 and so.. > > How can I specify a user defined directory while installing it and what > changes I have to make in the SPEC file to achieve that? In theory you can use --relocate etc. to achieve this. In practise, don't do it in rpms. In theory 0install is built for that kind of insanity. _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list