Experts Exchange connects you with the people and services you need so you can get back to work.
Improve company productivity with a Business Account.Sign Up
rpm -qf filename
Open in new window
[root@broken ~]# rpm -qf /etc/init.d/httpd
The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!
[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
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.