Originally Posted by zodehala
And how can i list installation directory for example i installed mysql and php and apache how can i see htdocs (public_html) dir. or mysql installation dir ? (lik echo $PATH)
A useful command is whereis, to list the locations where the executables and the manual pages ar installed, e.g.
If you want to see where a package has copied (that is installed) its files, you can simply use the very powerful rpm command:
You can grep the results to see specific sections:
rpm -ql mysql | grep bin # for executables
rpm -ql mysql | grep doc # for the htdocs and so on...
While you will use yum to install and search available packages (since it manages dependencies and keeps the packages database updated), rpm has many useful options at hand. Just an example: if you want to see what package has provided a specific file, you can do
rpm -qf /path/to/file