On Tue, 21 Jan 2003, Charlie Brady wrote:

> 
> On Tue, 21 Jan 2003, Peter Samuel wrote:
> 
> > On Tue, 21 Jan 2003, Charlie Brady wrote:
> > 
> > > I think you'll find you need the -d option to cpio - "cpio -idv".
> > 
> > Depends on your version of cpio. My tests showed it wasn't necessary
> > 
> > rpm -q rpm cpio
> >     rpm-4.0.4-7x.18
> >     cpio-2.4.2-26
> 
> Hmmm:
> 
> [charlieb@timtam tmp]$ rpm -q rpm cpio
> rpm-4.0.4-7x.18
> cpio-2.4.2-26
> [charlieb@timtam tmp]$ 
> [charlieb@timtam tmp]$ rpm2cpio e-smith-base-4.13.1-26.noarch.rpm | \
>                   cpio -iv
> cpio: ./etc/cron.weekly/refresh-ddns: No such file or directory
> cpio: ./etc/diald: No such file or directory
> cpio: ./etc/diald/device.conf: No such file or directory
> cpio: ./etc/diald/scripts: No such file or directory
> ...
> cpio: ./var/log/diald: No such file or directory
> cpio: ./var/state: No such file or directory
> cpio: ./var/state/httpd: No such file or directory
> 1884 blocks
> [charlieb@timtam tmp]$ ls etc var
> ls: etc: No such file or directory
> ls: var: No such file or directory
> [charlieb@timtam tmp]$

It worked for me with an RPM of mine:

[peters@allspice]% rpm -q rpm cpio
rpm-4.0.4-7x
cpio-2.4.2-23

[peters@allspice]% rpm2cpio ~/rpms/RPMS/noarch/rs-1.10-01.noarch.rpm | cpio -iv
./usr
./usr/bin
./usr/bin/rs
./usr/share
./usr/share/doc
./usr/share/doc/rs-1.10-01
./usr/share/doc/rs-1.10-01/COPYING
./usr/share/man
./usr/share/man/man1
./usr/share/man/man1/rs.1
200 blocks

Also worked on risotto which has 

[peters@allspice]% ssh risotto rpm -q rpm cpio
rpm-4.0.4-7x.18
cpio-2.4.2-26

Now let me try the RPM you mentioned

[peters@allspice]% rpm2cpio 
~development/rpms/RPMS/noarch/e-smith-base-4.13.1-26.noarch.rpm | cpio -iv
cpio: ./etc/cron.weekly/refresh-ddns: No such file or directory
cpio: ./etc/diald: No such file or directory
...

rpm -qlvp ~development/rpms/RPMS/noarch/e-smith-base-4.13.1-26.noarch.rpm | grep 
/etc/cron.weekly
-rwxr--r--    1 root    root               58 Feb 15  2002 
/etc/cron.weekly/refresh-ddns

rpm -qlvp ~/rpms/RPMS/noarch/rs-1.10-01.noarch.rpm | grep /usr
drwxr-xr-x    2 root    root                0 Jan 20 17:52 /usr
drwxr-xr-x    2 root    root                0 Jan 20 17:52 /usr/bin
-rwxr-xr-x    1 root    root            54765 Jan 20 17:52 /usr/bin/rs
drwxr-xr-x    2 root    root                0 Jan 20 17:52 /usr/share
drwxr-xr-x    2 root    root                0 Jan 20 17:52 /usr/share/doc
drwxr-xr-x    2 root    root                0 Jan 20 17:52 /usr/share/doc/rs-1.10-01
-rw-r--r--    1 root    root            18007 Jan 20 17:52 
/usr/share/doc/rs-1.10-01/COPYING
drwxr-xr-x    2 root    root                0 Jan 20 17:52 /usr/share/man
drwxr-xr-x    2 root    root                0 Jan 20 17:52 /usr/share/man/man1
-rw-r--r--    1 root    root            28132 Jan 20 17:52 /usr/share/man/man1/rs.1

The difference is that my RPM includes all the directories whereas the
e-smith-base RPM does not.

Bottom line, use the -d option to cpio.

-- 
Regards
Peter
----------
Peter Samuel, Senior Systems Administrator  [EMAIL PROTECTED]
http://www.e-smith.org (development)        http://www.mitel.com (corporate)
Phone: +1 613 592 2122                      Fax: +1 613 592 1175
Mitel Networks, 350 Legget Dr, Ottawa, ON K2K 2W7 Canada

"If you kill all your unhappy customers, you'll only have happy ones left"


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to