SCIENTIFIC-LINUX-DEVEL Archives

October 2018

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show HTML 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:
Steven C Timm <[log in to unmask]>
Reply To:
Steven C Timm <[log in to unmask]>
Date:
Mon, 8 Oct 2018 15:36:25 +0000
Content-Type:
multipart/alternative
Parts/Attachments:
text/plain (1113 bytes) , text/html (2155 bytes)
In SL7 there is no independent /bin directory.

The whole /bin directory is a symlink to /usr/bin.


Steve

________________________________
From: [log in to unmask] <[log in to unmask]> on behalf of aleksander.baranowski <[log in to unmask]>
Sent: Monday, October 8, 2018 10:12:32 AM
To: scientific-linux-devel
Subject: rpm `which` I don't understand :)

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