콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
60984 화면

Hi,

I would like to know what's the best way to fully uninstall Odoo, what folders I would have to delete or if there is a command that does all of the process.

I'm using Ubuntu 18.04 and it's to learn the right way to do it.

Thank you.

아바타
취소
베스트 답변

* Stop Server
* Remove all odoo files
* Remove postgresql from system

STOP SERVER
sudo service odoo stop
or sudo service odoo-server stop (if odoo-server instead of odoo)
REMOVE ALL ODOO FILES
sudo rm -R /opt/odoo
REMOVE CONFIG FILES
sudo rm -f /etc/odoo.conf
sudo rm -f /etc/odoo/odoo.conf (if any)
sudo rm -f /etc/odoo-server.conf (if any)
sudo update-rc.d -f odoo remove
sudo update-rc.d -f odoo-server remove (if odoo-server instead of odoo)
sudo rm -f /etc/init.d/odoo (or odoo-server)
REMOVE USER AND USER GROUP
sudo userdel -r postgres
sudo groupdel postgres
REMOVE DATABASE
sudo apt-get remove postgresql -y
sudo apt-get --purge remove postgresql\* -y
sudo rm -rf /etc/postgresql/
sudo rm -rf /etc/postgresql-common/
sudo rm -rf /var/lib/postgresql/

아바타
취소

How to uninstall odoo 15 that Installed in Odoo 14 Server?
I did the wrong installation

베스트 답변

A little response for a BIG question:

Just revert the steps of your installation process.

For the BIG response, you must first tell us how did you install it !!! (the steps you followed when installing odoo)

Lines added after comment (from Duvan):

For the the second method from getopenerp all you have to do is to delete the odoo directory under /opt/odoo created at step 9, and if you want you can also delete the log and configuration files created at step  10  ​and 11.

I repeat, just revert the steps 9, 10 and 11.

For the first method from https://www.odoo.yenthevg.com/installing-odoo-11-enterprise-ubuntu/​  you must revert some steps inside the install script.

The most important part of this script is located from line 111 till the end of the script.

Begin by deleting the following files and directories (folders):

- enterprise folder and all its subfolders under $OE_HOME/

custom folder and its subfolders under $OE_HOME/ 

- the server configuration file ${OE_CONFIG}.conf located under /etc/ 

- the startup file start.sh located under $OE_HOME_EXT/​ 

- delete the odoo init file (initscript) $OE_CONFIG located under /etc/init.d/

- and at last delete odoo from the startup by applying the following command: update-rc.d -f $OE_CONFIG remove

Hope this can help you !


N.B: 

$OE_HOME/ = odoo​

${OE_CONFIG}.conf = odoo.conf

$OE_HOME_EXT/ /odoo/odoo-server


아바타
취소
작성자

Thank you for your answer, I use 2 methods, the yenthe Odoo script https://www.odoo.yenthevg.com/installing-odoo-11-enterprise-ubuntu/ and this from getopenerp https://www.getopenerp.com/install-odoo-11-on-ubuntu-16-04/ But I will try reverting the instalation process as you said :)

베스트 답변

https://medium.com/@amirul_m/how-to-remove-odoo-completely-e62b1646b26c


Check out this link please 

아바타
취소
베스트 답변

I actually realized that before uninstalling odoo, the odoo server wasn't aware of my custom addon path so i just deleted the files in the home directory that has the name odoo.

After reinstalling it worked just fine.

아바타
취소
관련 게시물 답글 화면 활동
2
12월 18
8252
1
3월 15
3995
1
1월 24
1912
1
7월 19
8264
1
12월 18
4318