Sorry the files directive is %files -f $location/files.txt. -----Original Message----- From: rpm-list-bounces@xxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxx]On Behalf Of Sateesh Sent: Tuesday, August 31, 2004 11:39 AM To: RPM Package Manager Subject: Is it possible to refer to the files in the spec's pre script Hi, I have a requirement that, if my RPM package is overwriting a file(any file, not only config) from another package, take the backup of that file. Basically I want to do something like the following in the %pre section %files -p $location/files.txt %pre tar -cf /opt/changedfiles.tar %{files} But this is not working as it is. Thanks Sateesh _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list