"-bash: line 7: dpkg: command not found" said CentOS
Solution 1:
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
For more information: http://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/
Solution 2:
with centos you should be using yum, since it is the package manager of centos.
dpkg is for debian (ubuntu) based distributions.
Solution 3:
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
- Download the latest epel-release rpm from http://dl.fedoraproject.org/pub/epel/6/i386/
-
Install epel-release rpm:
rpm -Uvh epel-release*rpm
-
Install dpkg rpm package:
yum install dpkg