how to uninstall mosquitto server

Asked by Anirudh

i have ubuntu server on which someone had installed mosquitto version 0.12 installed on it, i want to remove it so that i can install new 0.14.4 version on it, but i don't know how to uninstall the older version...

Question information

Language:
English Edit question
Status:
Solved
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Solved by:
Roger Light
Solved:
Last query:
Last reply:
Revision history for this message
Roger Light (roger.light) said :
#1

Do you know how it was installed? A good clue is the location of the mosquitto executable. If it is at /usr/sbin/mosquitto then it will have been installed from the package repository. If this is the case, you should be able to refresh your repository with

sudo apt-get update

then upgrade mosquitto using

sudo apt-get upgrade mosquitto

You may also need to add the mosquitto ppa to your repository list if it isn't already there. This can be done using

sudo add-apt-repository ppa:mosquitto-dev/mosquitto-ppa
sudo apt-get update
sudo apt-get upgrade mosquitto

If your mosquitto executable is at /usr/local/sbin/mosquitto, it was installed by hand. You should download the mosquitto tarball, extract the archive and then run "make uninstall" from within the new directory. You should then follow the above steps to add the mosquitto repository but use

sudo apt-get install mosquitto

instead of upgrade.

Revision history for this message
Anirudh (anirudh-tandel) said :
#2

hi,

Thanks for quick reply...

I followed your steps but i need to uninstall mosquitto server , it want to
uninstall mosquitto server location of my executables is
/usr/sbin/mosquitto,

i tried apt-get remove mosquitto but it didn't work..

On Fri, Jan 20, 2012 at 9:45 PM, Roger Light <
<email address hidden>> wrote:

> Your question #185307 on mosquitto changed:
> https://answers.launchpad.net/mosquitto/+question/185307
>
> Status: Open => Answered
>
> Roger Light proposed the following answer:
> Do you know how it was installed? A good clue is the location of the
> mosquitto executable. If it is at /usr/sbin/mosquitto then it will have
> been installed from the package repository. If this is the case, you
> should be able to refresh your repository with
>
> sudo apt-get update
>
> then upgrade mosquitto using
>
> sudo apt-get upgrade mosquitto
>
> You may also need to add the mosquitto ppa to your repository list if it
> isn't already there. This can be done using
>
> sudo add-apt-repository ppa:mosquitto-dev/mosquitto-ppa
> sudo apt-get update
> sudo apt-get upgrade mosquitto
>
>
> If your mosquitto executable is at /usr/local/sbin/mosquitto, it was
> installed by hand. You should download the mosquitto tarball, extract the
> archive and then run "make uninstall" from within the new directory. You
> should then follow the above steps to add the mosquitto repository but use
>
> sudo apt-get install mosquitto
>
> instead of upgrade.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/mosquitto/+question/185307/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/mosquitto/+question/185307
>
> You received this question notification because you asked the question.
>

Revision history for this message
Anirudh (anirudh-tandel) said :
#3

Hi,

I managed to uninstall mosquitto server , but caught into another error
while reinstalling it...

i m trying to install mosquitto using make install command but it is
throwing me this error

install -d /usr/local/sbin
install -s mosquitto /usr/local/sbin/mosquitto
install: cannot stat `mosquitto': No such file or directory
make[1]: *** [install] Error 1

i also tried using root but same error..?

On Fri, Jan 20, 2012 at 10:20 PM, Anirudh <
<email address hidden>> wrote:

> Your question #185307 on mosquitto changed:
> https://answers.launchpad.net/mosquitto/+question/185307
>
> Status: Answered => Open
>
> You are still having a problem:
> hi,
>
> Thanks for quick reply...
>
> I followed your steps but i need to uninstall mosquitto server , it want to
> uninstall mosquitto server location of my executables is
> /usr/sbin/mosquitto,
>
> i tried apt-get remove mosquitto but it didn't work..
>
> On Fri, Jan 20, 2012 at 9:45 PM, Roger Light <
> <email address hidden>> wrote:
>
> > Your question #185307 on mosquitto changed:
> > https://answers.launchpad.net/mosquitto/+question/185307
> >
> > Status: Open => Answered
> >
> > Roger Light proposed the following answer:
> > Do you know how it was installed? A good clue is the location of the
> > mosquitto executable. If it is at /usr/sbin/mosquitto then it will have
> > been installed from the package repository. If this is the case, you
> > should be able to refresh your repository with
> >
> > sudo apt-get update
> >
> > then upgrade mosquitto using
> >
> > sudo apt-get upgrade mosquitto
> >
> > You may also need to add the mosquitto ppa to your repository list if it
> > isn't already there. This can be done using
> >
> > sudo add-apt-repository ppa:mosquitto-dev/mosquitto-ppa
> > sudo apt-get update
> > sudo apt-get upgrade mosquitto
> >
> >
> > If your mosquitto executable is at /usr/local/sbin/mosquitto, it was
> > installed by hand. You should download the mosquitto tarball, extract the
> > archive and then run "make uninstall" from within the new directory. You
> > should then follow the above steps to add the mosquitto repository but
> use
> >
> > sudo apt-get install mosquitto
> >
> > instead of upgrade.
> >
> > --
> > If this answers your question, please go to the following page to let us
> > know that it is solved:
> >
> >
> https://answers.launchpad.net/mosquitto/+question/185307/+confirm?answer_id=0
> >
> > If you still need help, you can reply to this email or go to the
> > following page to enter your feedback:
> > https://answers.launchpad.net/mosquitto/+question/185307
> >
> > You received this question notification because you asked the question.
> >
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Best Roger Light (roger.light) said :
#4

There is a missing dependency in the Makefile so you should run "make" first. However, if you're on Ubuntu you should use the PPA repository to do the installation. This will install the latest version and keep you up to date when new versions are released. Please follow the steps:

sudo add-apt-repository ppa:mosquitto-dev/mosquitto-ppa
sudo apt-get update
sudo apt-get install mosquitto

If you don't use the packaged version then you will have to add the mosquitto user to your system, create your own init script and other tasks. I'd really recommend using the packaged version unless you want to work on mosquitto development itself.

Revision history for this message
Anirudh (anirudh-tandel) said :
#5

Thanks Roger Light, that solved my question.