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

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Sat Jan 10 15:07:26 UTC 2004


Am Sa, den 10.01.2004 schrieb Technical um 15:51:
> > Technical wrote:
> >> 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]#
> >
> > Check if your rpm is good. It might be incomplete or corrupt.
> > md5sum sendmail-8.12.10-1.1.1.i386.rpm
> > 1787392cd6455978ba0181726d89842b  sendmail-8.12.10-1.1.1.i386.rpm
> > ls -l sendmail-8.12.10-1.1.1.i386.rpm
> > -rw-r--r--    1 root     root      1018439 Oct 29 13:39
> > sendmail-8.12.10-1.1.1.i386.rpm
> >
> > top-posting is when you reply -above- the post rather than below it.
> > It makes it more difficult for people to follow the conversation.
> >
> >
> > --
> > fedora-list mailing list
> > fedora-list at redhat.com
> > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> >
> 
> If the checksum of my package si the same as the original, does that mean
> that the packet is not corrupt??

md5sum is not a very secure proof for a valid, not corrupted package.
But normally you can trust a match with a reliable source.

You can also run: rpm -Uvh --test sendmail-8.12.10-1.1.1.i386.rpm. If
that does not fail with blaming for damage, maybe just complaining that
the package is already installed, the rpm should be fine.

Alexander


-- 
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416  14CD E197 6E88 ED69 5653





More information about the fedora-list mailing list