SCIENTIFIC-LINUX-DEVEL Archives

October 2018

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"aleksander.baranowski" <[log in to unmask]>
Reply To:
aleksander.baranowski
Date:
Mon, 8 Oct 2018 17:12:32 +0200
Content-Type:
multipart/signed
Parts/Attachments:
text/plain (682 bytes) , signature.asc (851 bytes)
Hi,

Sorry for spamming mailing lists once more, but I'm probably missing
something.

So we have this package on called which-2.20-7.el7.x86_64.
The
`rpm -ql which | grep bin` returns:
/usr/bin/which

In the same time, there is `/bin/which` file that according to the
package is not provided with `which`.

then `rpm -qf /usr/bin/which /bin/which` returns
which-2.20-7.el7.x86_64
which-2.20-7.el7.x86_64

Tells us that the package provides this files.
Then
`stat /usr/bin/which /bin/which | grep -o 'Inode: [[:digit:]]*'`
return the same Inode for both files. But
ll /usr/bin/which /bin/which returns number of links that is equal 1. So
it's not hardlinked.

I'm baffled.

Any explanation is welcome.

Bests,
Alex





ATOM RSS1 RSS2