I'm unable to remove or uninstall mosquito broker. What are the steps needed to remove MQTT mosquitto broker in Ubuntu?
Asked
Active
Viewed 5.9k times
8
1 Answers
12
As Abu Ahmed Al Khatiri comment in question, is working for me so here is the commands how these needs to run.
To remove all mosquitto packages like mosquitto, mosquitto-clients and mosquitto-dev below command will be used:-
sudo apt-get purge --remove mosquitto*
After this we need to remove repository type so need to run this command too on terminal:-
sudo apt-add-repository --remove ppa:mosquitto-dev/mosquitto-ppa
This works for me perfectly. So this may help any one.

Lakhwinder Singh
- 223
i installed mosquitto broker using the above codes...
– Lalithaditya Naidu Gajula Nov 14 '18 at 11:38sudo apt purge mosquitto-clients
should be enough. Make sure you type the package name correctly. – DK Bose Nov 14 '18 at 11:42sudo apt-get purge --remove mosquitto*
for the includemosquitto
package,mosquitto-clients
package alsomosquitto-dev
package. if you want remove that Repository with typesudo apt-add-repository --remove ppa:mosquitto-dev/mosquitto-ppa
– abu-ahmed al-khatiri Nov 14 '18 at 11:43