Use following syntax to list the files for already INSTALLED package:
rpm -ql package-name
Use following syntax to list the files for RPM package:
rpm -qlp package.rpm
Use following syntax to list the files for already INSTALLED package:
rpm -ql package-name
Use following syntax to list the files for RPM package:
rpm -qlp package.rpm
Well all know that this packet is not included into centos distro . To install and use php-mcrypt you have to install and use epel repository.
So here we go
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
yum update
yum install php-mcrypt*
Well in rpm base distribution you may use this
rpm -qa /path/to/file
And you will have a answer like this :
rpm -qf /usr/bin/top
procps-3.2.7-11.1.el5
On a ubuntu server you should run
dpkg -S /path/to/file
dpkg -S /usr/bin/top
procps: /usr/bin/top
Powered by WordPress