Re: Verifying inode number using rpm and ls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 13 Dec 2008, John Horne wrote:
[Apologies for cross-posting from the opensuse list]

Hello,

I was wondering if someone could tell me why there is a difference in
the reported inode number of a file from the 'ls' command, and from the
'rpm' command. For example, using the /usr/bin/wget file, I get:

        ls -i /usr/bin/wget
        365523 /usr/bin/wget

        rpm -qf --qf '[%{FILEINODES}:%{FILENAMES}\n]' /usr/bin/wget|
grep ':/usr/bin/wget$'
        157816006:/usr/bin/wget

I realise that prelinking will cause the inode number to change, but
even without prelinking the numbers reported are not the same.

Surely the rpm package manager database will report the inode number of
the installed file. Running 'rpm -Vf /usr/bin/wget' verifies the file as
okay, although as far as I am aware rpm verification does not include
testing the inode number.

Hysterical as it is, the inode numbers in packages are from the host used to build the package so they'll never match what you have installed. The inode numbers in packages are only used for rpm internal hardlink handling.

	- Panu -

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux