Discussion:
weird file package relationship
Hiren Patel
2007-06-29 10:36:56 UTC
Permalink
hi, i have some weird output from rpm, /usr/lib/sa/sa1 claims to be from
a package that does not list its output when queried for its files.
what could have caused this? it doesn't look normal?

rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" -f /usr/lib/sa/sa1
sysstat-5.0.5-15.0.1.el4.x86_64

rpm -ql sysstat-5.0.5-15.0.1.el4.x86_64 |grep 'sa1'
/usr/lib64/sa/sa1
/usr/share/man/man8/sa1.8.gz
--
Hiren Patel | Ops Specialist | ISS Infrastructure | Telkom
E-Mail: ***@telkom.co.za Office: +27 12 680 3460 | Fax: +27 12 680
3299 | Cell: +27 73 456 7980

The animals are not as stupid as one thinks -- they have neither
doctors nor lawyers.
-- L. Docquier

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tony Earnshaw
2007-06-29 11:11:15 UTC
Permalink
Post by Hiren Patel
hi, i have some weird output from rpm, /usr/lib/sa/sa1 claims to be from
a package that does not list its output when queried for its files.
what could have caused this? it doesn't look normal?
rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" -f /usr/lib/sa/sa1
sysstat-5.0.5-15.0.1.el4.x86_64
rpm -ql sysstat-5.0.5-15.0.1.el4.x86_64 |grep 'sa1'
/usr/lib64/sa/sa1
/usr/share/man/man8/sa1.8.gz
Perhaps /usr/lib/sa/sa1 is a symlink made by a %post script?

--Tonni
--
Tony Earnshaw
Email: tonni at hetnet dot nl
Hiren Patel
2007-06-29 11:31:42 UTC
Permalink
sorry for the noise they appear to be hard links.

stat /usr/lib/sa/sa1
File: `/usr/lib/sa/sa1'
Size: 286 Blocks: 16 IO Block: 4096 regular file
Device: 806h/2054d Inode: 5472258 Links: 1

stat /usr/lib64/sa/sa1
File: `/usr/lib64/sa/sa1'
Size: 286 Blocks: 16 IO Block: 4096 regular file
Device: 806h/2054d Inode: 5472258 Links: 1

i would have thought though that the links count would be 2.
Post by Tony Earnshaw
Post by Hiren Patel
hi, i have some weird output from rpm, /usr/lib/sa/sa1 claims to be from
a package that does not list its output when queried for its files.
what could have caused this? it doesn't look normal?
rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" -f /usr/lib/sa/sa1
sysstat-5.0.5-15.0.1.el4.x86_64
rpm -ql sysstat-5.0.5-15.0.1.el4.x86_64 |grep 'sa1'
/usr/lib64/sa/sa1
/usr/share/man/man8/sa1.8.gz
Perhaps /usr/lib/sa/sa1 is a symlink made by a %post script?
--Tonni
--
Hiren Patel | Ops Specialist | ISS Infrastructure | Telkom
E-Mail: ***@telkom.co.za Office: +27 12 680 3460 | Fax: +27 12 680
3299 | Cell: +27 73 456 7980

The animals are not as stupid as one thinks -- they have neither
doctors nor lawyers.
-- L. Docquier

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bob Proulx
2007-06-30 17:10:40 UTC
Permalink
Post by Hiren Patel
hi, i have some weird output from rpm, /usr/lib/sa/sa1 claims to be from
a package that does not list its output when queried for its files.
what could have caused this? it doesn't look normal?
rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" -f /usr/lib/sa/sa1
sysstat-5.0.5-15.0.1.el4.x86_64
rpm -ql sysstat-5.0.5-15.0.1.el4.x86_64 |grep 'sa1'
/usr/lib64/sa/sa1
/usr/share/man/man8/sa1.8.gz
Running this might be interesting. Look to see if the post install
script does something with those files outside of rpm's database.

rpm -q --scripts -f /usr/lib/sa/sa1

Bob
Jon Stanley
2007-06-30 17:47:30 UTC
Permalink
The reason for this is that both the x86_64 and i386 versions of sysstat
are installed - I just did this on a CentOS box to verify - it didn't
have any sysstat on it, and then I did a 'yum install sysstat', and it
wanted to install both the i386 and x86_64 versions, and the i386 one
owns /usr/lib/sa/sa1, and x86_64 owns the /usr/lib64 version of the same
thing.

[***@monster yum.repos.d]$ rpm -q --queryformat
'%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' sysstat
sysstat-5.0.5-15.0.1.el4.x86_64
sysstat-5.0.5-14.rhel4.i386
Post by Hiren Patel
hi, i have some weird output from rpm, /usr/lib/sa/sa1 claims to be from
a package that does not list its output when queried for its files.
what could have caused this? it doesn't look normal?
rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n"
-f /usr/lib/sa/sa1
sysstat-5.0.5-15.0.1.el4.x86_64
rpm -ql sysstat-5.0.5-15.0.1.el4.x86_64 |grep 'sa1'
/usr/lib64/sa/sa1
/usr/share/man/man8/sa1.8.gz
Loading...