On 14 Aug 2002, Douglas Willis wrote:
Does any one know how to extract the contents of an RPM without installing it?
rpm2cpio thingy.rpm | (cd where/to/splat/it ; cpio -div)
The reason I want to do this is I have an RPM that I want to install into a customised location rather than the defaults that are scripted in the RPM install script.
rpm --root ??? Puts the package under that, but also needs the rpm database in that tree too.
-- Douglas Willis (ddw@nerc-bas.ac.uk) British Antarctic Survey High Cross, Madingley Road Cambridge, CB3 0ET, United Kingdom tel: +44 1223 221400, fax: +44 1223 362616
B.A.S. ? Does Alison George still work there? Bill says "Hiya!!!"
------------------------------------------------------------------------- W.B.Hill, Flat 4 \ Email: wbh@uea.ac.uk "Give a man a fire and he will 10a Mill Hill Rd \ Tel: (+44) 7710 781584 \ be warm for a day: set a man Norwich. NR2 3DP \ Fax: (+44) 8700 547508 \ on fire and he will be warm *United Kingdom* \ Web: http://www.wbh.org \ for the rest of his life." ------------------------------------------------------------------------- PGP-Fingerprint: B3 6F 2E D6 - B6 48 F1 FB -*- 7C AA 28 0C - 96 61 9A B5