Delete wizard

I installed The Foreman on Ubuntu Server 12.04, following the instructions here:

http://theforeman.org/manuals/1.2/quickstart_guide.html#Installation

Now I decided that this is not for me, but I can not find any instructions on how to remove it. Various commands, such as gem uninstall theeman, fail because it seems that it was installed as gems.

Any help would be greatly appreciated. Thanks Cristiano

+4
source share
2 answers

I'm sure you already understood something else, but if someone else is stuck with this, here are the teams that worked for me:

sudo apt-get --purge remove foreman foreman-installer foreman-proxy sudo rm -rf /var/lib/foreman /usr/share/foreman /usr/share/foreman-proxy/logs sudo rm /etc/apache2/conf.d/foreman.conf 

You can also remove the doll if you did not use it before installing the wizard:

 sudo apt-get remove --purge puppet puppetmaster puppet-common puppetmaster-common puppetlabs-release sudo rm -rf /usr/lib/ruby/vendor_ruby/puppet /usr/share/puppet /var/lib/puppet /etc/puppet sudo rm /etc/apache2/conf.d/puppet.conf 

You can also run the following to remove any other dependencies that have been installed and are no longer required:

 sudo apt-get autoremove 

Finally, restart apache now that the wizard and puppet commands have been removed:

 sudo service apache2 restart 

I may have been missing a few things, but it seemed to save me most of them.

+5
source

first, you should get a list of packages related to the installer wizard. To get the list, run the following command:

 sudo dpkg -l |grep foreman 

in my environment (ubuntu 12.04 and team leader 1.4), he came back with information including "master", "master installer", "master postgresql", "master proxy" and "rub-master-api".

then we can use apt-get to remove the above packages:

 sudo apt-get remove --purge forman sudo apt-get remove --purge forman-proxy sudo apt-get remove --purge ruby-foreman-api 

after the above commands, he should remove all packages associated with it. You can run dpkg -l |grep foreman to verify that all packages associated with it have been removed.

Finally, you can remove other unnecessary packages using sudo apt-get autoremove .

some logs and conf folders from the wizard will still remain on your OS, you may need to manually clear them.

+3
source

Source: https://habr.com/ru/post/1499820/


All Articles