Rpm packages find at which location

hello @Ayman

when i find package like yum list httpd it show package available but when i want to install it through rpm -ivh ,for this i want to find where this available package at which file location so that i can go through this and run rpm -ivh httpd

Hello, @anu
You can install httpd package by

$ yum install httpd

You can get rpm files from centos repo…
http://mirror.centos.org/centos/7/os/x86_64/Packages/

@Tej-Singh-Rana no i want to find out rpm package location at which path it is situated,so that i can go to that path install with rpm -ivh just for practice

It’s fetching from the central repository which is listed in the /etc/yum.repos.d/ path.