How can i use rpm to retrive a specific file from a package?

Technical technical at sojourn.dyndns.org
Sat Jan 10 01:56:54 UTC 2004


what is top - post?

I still get the same problem

ail.mc[root at sojourn root]# rpm2cpio
/var/spool/up2date/sendmail-8.12.10-1.1.1.i386.rpm | cpio -ivd
./etc/mail/sendmail.mc
4574 blocks
cpio: premature end of archive
[root at sojourn root]#




> Am Sa, den 10.01.2004 schrieb Technical um 01:00:
>> I cannot get ti to work; what am I doing wrong; here is the output
>>
>> [root at sojourn root]# rpm2cpio
>> /var/spool/up2date/sendmail-8.12.10-1.1.1.i386.rpm | cpio -ivd
>> /etc/mail/
>> sendmail.mc
>> 4574 blocks
>> cpio: premature end of archive
>> [root at sojourn root]#
>
> Please do not top-post!
>
> $ rpm2cpio sendmail-8.12.10-1.1.1.i386.rpm | cpio -t | grep sendmail.mc
> 4574 blocks
> ./etc/mail/sendmail.mc
>
> rpm2cpio sendmail-8.12.10-1.1.1.i386.rpm | cpio -ivd
> ./etc/mail/sendmail.mc
>
> You did leave off the . in front of the path. The last command will
> create the full path in the current directory. So the sendmail.mc is
> after processing in $pwd/etc/mail/.
>
> --
> Alexander Dalloz | Enger, Germany
> PGP key valid: made 13.07.1999
> PGP fingerprint: 2307 88FD 2D41 038E 7416  14CD E197 6E88 ED69 5653
>
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>





More information about the fedora-list mailing list