Experts Exchange connects you with the people and services you need so you can get back to work.
rpm -qf filename
Open in new window
[root@broken ~]# rpm -qf /etc/init.d/httpd
Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.
[root@broken rpm]# pwd
[root@broken rpm]# head macros
#/*! \page config_macros Default configuration: /usr/lib/rpm/macros
# This is a global RPM configuration file. All changes made here will
# be lost when the rpm package is upgraded. Any per-system configuration
# should be added to /etc/rpm/macros, while per-user configuration should
# be added to ~/.rpmmacros.
[user@phx1mmail1 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
[user@phx1mmail1 ~]$ grep query_all_fmt /usr/lib/rpm/macros
[root@broken rpm]# grep query_all_fmt macros
[root@broken rpm]# grep nvra !$
grep nvra macros
[root@broken rpm]# cat /etc/redhat-release
CentOS Linux release 6.0 (Final)
> what nvra is
Name Version Release Arch
new stuff in RHEL6.x
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.