# -+- number -+- category -+- title -+- email -+- name -+- homepage -+- clickOnName -+- language -+- image -+- browser-used -+- security-cookie =0 -+- 2004-02-25:2 -+- UNIX Basics -+- using rpm2cpio to extract files from rpm package without install it -+- slimzhao@21cn.com -+- slimzhao -+- -+- nolink -+- English -+- -+- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) -+- 6639 rpm use cpio's archive format internally.

rpm itself can't extract single or bundle of files from a package.

rpm-XXXX.rpm provide a tool called rpm2cpio

that's it:

rpm2cpio your_package.rpm | cpio -di '*.doc'

this command extract all files match the pattern '*.doc', it's necessary to use single-quote to protect *. from globbing by shell