I'd like to use the command dpkg in my PHP script (using exec).
I'm running CentOS. Is there a way I can install the command dpkg on there?
Step by step guide would be fantastic.
These steps worked for me on CentOS 7:
sudo yum -y install epel-releasesudo yum repolistsudo yum install dpkg-devel dpkg-devFor more information: http://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/
with centos you should be using yum, since it is the package manager of centos.
dpkg is for debian (ubuntu) based distributions.
For those who wanted to know: you can install dpkg.
Qouted from http://pkgs.org/centos-6/epel-i386/dpkg-1.15.5.6-6.el6.i686.rpm.html
Install epel-release rpm:
rpm -Uvh epel-release*rpm
Install dpkg rpm package:
yum install dpkg