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.
3 Answers
These steps worked for me on CentOS 7:
- Install epel using the following command:
sudo yum -y install epel-release - Refresh repo by typing the following commad:
sudo yum repolist - Install the dpkg rpm packages:
sudo yum install dpkg-devel dpkg-dev
with centos you should be using yum, since it is the package manager of centos.
dpkg is for debian (ubuntu) based distributions.
3For those who wanted to know: you can install dpkg.