How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

March 10, 2014

rpm – Find out what files are in my rpm package

Filed under: Linux — Tags: , , , — admin @ 10:59 am

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

January 20, 2014

centos 6 and php mcrypt

Filed under: Linux — Tags: , , , — admin @ 3:27 pm

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*

April 2, 2012

Equivalent of rpm -qa in ubuntu

Filed under: Linux — Tags: , , , , — admin @ 3:04 pm

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