Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zsh: command not found: dpkg

I am downloading MySQL and I 've been told to download a .deb, so I download a mysql-apt-config_0.8.15-1_all.deb from the website. The problem is that when I type in sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb , the terminal says sudo: dpkg: command not found. I know that this question has been posted before, but I couldn't understand the solution, is there any simple way that I can fix this? Thanks in advance.

like image 600
Peter24 Avatar asked Jan 29 '26 20:01

Peter24


2 Answers

On Mac, use brew install dpkg. If brew is not installed, try /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Then use brew install dpkg and then you can simply use dpkg -i.

like image 134
Akshat Vats Avatar answered Jan 31 '26 09:01

Akshat Vats


Yes, most probably you are on the wrong shell. Type bash or sh before running the dpkg command. I hope this works! If it doesn't comment below! If it works please accept!

Note: dpkg -i not dpkg-i

like image 39
DAVID Avatar answered Jan 31 '26 08:01

DAVID