Rabu, 04 Juli 2012

How to Remove OpenERP from Linux? [SOLVED]


Make sure all OpenERP program is not running.

Code:
sudo kill -9 $(ps ax | grep openerp-server | grep -v grep | awk '{print $1}')

Code above will kill all processes containing "openerp-server"

Now, if you used the deb packages (by means of apt-get install, used synaptic, or any other easy-to-do instance). You should probably try uninstalling doing the following:
Code:
sudo deluser --remove-home --force openerp
sudo apt-get purge openerp-server openerp-client
Maybe it have had some trouble with the second command alone. The suggested way is you have to remove the openerp user first by this code.
 
Code:
sudo updatedb
sudo rm -fr /usr/local/lib/python2.6/dist-packages/openerp-*
sudo rm -fr $(locate openerp | grep -v ".deb" | grep -v ".tar")
The first command updates some data regarding the location of your system files. The second one removes (as a super-user) the path of openerp-server and openerp-client in a recursive (including sub-directories) manner. The third one does two things: first, it locates any file containing the string "openerp" in its path (including directories), except for the ones with .deb and .tar extensions.

Then, it removes them. It is also possible that you have to run this following prior to the second command:

Code:
sudo update-rc.d -f openerp-server remove
which will remove your init-scripts

That is the way. I found this way from http://www.openerp.com/forum/topic20579.html by Good Luck :)


SMANGAD!


2 komentar: