Skip to content

Instantly share code, notes, and snippets.

@Vultour
Created October 4, 2016 12:52
Show Gist options
  • Save Vultour/806f7320d4d2f0ce26065262a81c6074 to your computer and use it in GitHub Desktop.
Save Vultour/806f7320d4d2f0ce26065262a81c6074 to your computer and use it in GitHub Desktop.
# 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
@Nefeth
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.

@jehutywong
Copy link

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