Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Remove foreman
yum remove remove foreman foreman-installer foreman-proxy
rm -rf /var/lib/foreman /usr/share/foreman /usr/share/foreman-proxy/logs
rm /etc/httpd/conf.d/foreman.conf
# Remove puppet
yum remove puppet puppetmaster puppet-common puppetmaster-common puppetlabs-release
rm -rf /usr/lib/ruby/vendor_ruby/puppet /usr/share/puppet /var/lib/puppet /etc/puppet
rm /etc/apache2/conf.d/puppet.conf
Copy link

Nefeth commented May 19, 2017

line 2 has an extra remove
at line 3, three extra folders under /etc have to be removed as well /etc/foreman /etc/foreman-installer /etc/foreman-proxy is these are left there re-installation is running into errors.

Copy link

jehutywong commented Jun 26, 2019

with --remove-leaves in yum, you can further remove all dependency packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment