RPM Community Forums

Mailing List Message of <rpm-users>

Re: hard-linked files handling by rpm

From: Jeffrey Johnson <n3npq@me.com>
Date: Wed 22 Jan 2014 - 04:01:58 CET
Message-id: <8871490D-6A77-49C1-9A64-C7015D954D20@me.com>

On Jan 21, 2014, at 9:49 PM, Rajul Bhavsar <rajulbhavsar@gmail.com> wrote:

> 
> 
> 
> On Tue, Jan 21, 2014 at 10:23 PM, Jeffrey Johnson <n3npq@me.com> wrote:
> 
> >>> If hard-links are treated as just another files (for inclusion in .rpm) then why difference in size of payload - when same file is duplicated and hard-linked?

Read about cpio headers: there needs to be some way to specify
what foe path to link to, a search across a file system for a specific
inode is quite performance intensive, so the path to the file to be linked
to is included in the cpio payload.

>  
> You can see all metadata with
>         rpm -qp —yaml  somepackage.rpm
> There is also —xml if you prefer the eye-scratchy angle bracket syntax.
> 

Or compare the metadata with and without the hardline using —yaml. All the
metadata is displayed with —yaml.

You asked to understand why the *.rpm package was larger. One (or both)
of the above answers should provide an answer to you.

73 de Jeff
Received on Wed Jan 22 04:02:08 2014
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.