upgrade on linux redhat

Hi,

In the manual it says that I should uninstall the previous version and install the new one.
I know this is probaly trivial to linux users but I couldn't find a simple answer.

How do I uninstall ejabberd that was built and installed from source on linux redhat?
I think I should write "make uninstall" but in what path?
Is there an option to uninstall completely?

How do I uninstall ejabberd that was installed using the binary installer on linux redhat?
I have tried to run ./uninstall in the opt/ejabberd-2.0.0 folder.
When I installed ejabberd-2.0.1 binary it somehow remembers the users that where registered on the previous ejabberd.
Do I need to do something elese to completly uninstall it?

Thanks

How to uninstall completely

Ted wrote:

How do I uninstall ejabberd that was built and installed from source on linux redhat?
I think I should write "make uninstall" but in what path?

In the src/ directory. I tried this (I got root privileges using 'sudo', maybe you don't need that):

$ cd ejabberd/src
$ make
making all in mod_irc
make[1]: se ingresa al directorio `/git/ejabberd/src/mod_irc'
make[1]: No se hace nada para `all'.
make[1]: se sale del directorio `/git/ejabberd/src/stringprep'
...

$ sudo make install
[sudo] password for badlop:
making all in mod_irc
make[1]: se ingresa al directorio `/git/ejabberd/src/mod_irc'
make[1]: No se hace nada para `all'.
make[1]: se sale del directorio `/git/ejabberd/src/stringprep'
...
install -d //var/lib/ejabberd/ebin
install -m 644 *.beam //var/lib/ejabberd/ebin
rm -f //var/lib/ejabberd/ebin/configure.beam
install -m 644 *.app //var/lib/ejabberd/ebin
install -d //var/lib/ejabberd/priv/lib
install -d //var/lib/ejabberd/priv/bin
install -m 644 *.so //var/lib/ejabberd/priv/lib
install -d //var/lib/ejabberd/priv/msgs
install -m 644 msgs/*.msg //var/lib/ejabberd/priv/msgs
install -d //etc/ejabberd
[ -f //etc/ejabberd/ejabberd.cfg ] && install -b -m 644 ejabberd.cfg.example 
  //etc/ejabberd/ejabberd.cfg-new 
  || install -b -m 644 ejabberd.cfg.example //etc/ejabberd/ejabberd.cfg
sed -e "s*@rootdir@*/*" ejabberdctl.template > ejabberdctl.example
[ -f //etc/ejabberd/ejabberdctl.cfg ] && install -b -m 644 ejabberdctl.cfg.example 
  //etc/ejabberd/ejabberdctl.cfg-new 
  || install -b -m 644 ejabberdctl.cfg.example //etc/ejabberd/ejabberdctl.cfg
install -b -m 644 inetrc //etc/ejabberd/inetrc
install -d //sbin
install -m 755 ejabberdctl.example //sbin/ejabberdctl
install -d //var/log/ejabberd

$ sudo make uninstall
rm -rf //var/lib/ejabberd/ebin
rm -rf //var/lib/ejabberd/priv/lib
rm -rf //var/lib/ejabberd/priv/msgs
rm -rf //var/lib/ejabberd/priv
rm -rf //sbin/ejabberdctl
Ted wrote:

Is there an option to uninstall completely?

Yes:

$ make uninstall-all

I don't show you an example because it would delete my config file and database :)

Ted wrote:

How do I uninstall ejabberd that was installed using the binary installer on linux redhat?
I have tried to run ./uninstall in the opt/ejabberd-2.0.0 folder.

Yes, that's correct.

Ted wrote:

When I installed ejabberd-2.0.1 binary it somehow remembers the users that where registered on the previous ejabberd.
Do I need to do something elese to completly uninstall it?

The uninstaller included in the binary installer does not remove the directories database/ and logs/
You probably want to delete those directories manually after using the uninstaller.

Syndicate content