How to Uninstall Foreman
Create a script "foreman-uninstall.sh" and add Following line to the Script.
Foreman |
# Remove foreman
yum remove foreman foreman-installer foreman-proxy
rm -rf /var/lib/foreman /usr/share/foreman /usr/share/foreman-proxy/logs /etc/foreman /etc/foreman-installer /etc/foreman-proxy
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
#Remove Passenger
yum remove passenger-4.0.53-4.el7.x86_64
Then Run the script "bash -x foreman-uninstall.sh"
+ yum remove foreman foreman-installer foreman-proxy
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package foreman.noarch 0:1.12.2-1.el7 will be erased
--> Processing Dependency: foreman >= 1.12.0 for package: tfm-rubygem-foreman_setup-4.0.0-1.fm1_12.el7.noarch
--> Processing Dependency: foreman = 1.12.2-1.el7 for package: foreman-postgresql-1.12.2-1.el7.noarch
---> Package foreman-installer.noarch 1:1.12.2-1.el7 will be erased
---> Package foreman-proxy.noarch 0:1.12.2-1.el7 will be erased
--> Running transaction check
---> Package foreman-postgresql.noarch 0:1.12.2-1.el7 will be erased
---> Package tfm-rubygem-foreman_setup.noarch 0:4.0.0-1.fm1_12.el7 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================================================================================
Removing:
foreman noarch 1.12.2-1.el7 @foreman 111 M
foreman-installer noarch 1:1.12.2-1.el7 @foreman 2.9 M
foreman-proxy noarch 1.12.2-1.el7 @foreman 324 k
Removing for dependencies:
foreman-postgresql noarch 1.12.2-1.el7 @foreman 49
tfm-rubygem-foreman_setup noarch 4.0.0-1.fm1_12.el7 @foreman-plugins 218 k
Transaction Summary
=======================================================================================================================================================================================
Remove 3 Packages (+2 Dependent packages)
Refer the original script. I've add few other required files. If you liked the post please do not forget to share.Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package foreman.noarch 0:1.12.2-1.el7 will be erased
--> Processing Dependency: foreman >= 1.12.0 for package: tfm-rubygem-foreman_setup-4.0.0-1.fm1_12.el7.noarch
--> Processing Dependency: foreman = 1.12.2-1.el7 for package: foreman-postgresql-1.12.2-1.el7.noarch
---> Package foreman-installer.noarch 1:1.12.2-1.el7 will be erased
---> Package foreman-proxy.noarch 0:1.12.2-1.el7 will be erased
--> Running transaction check
---> Package foreman-postgresql.noarch 0:1.12.2-1.el7 will be erased
---> Package tfm-rubygem-foreman_setup.noarch 0:4.0.0-1.fm1_12.el7 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================================================================================
Removing:
foreman noarch 1.12.2-1.el7 @foreman 111 M
foreman-installer noarch 1:1.12.2-1.el7 @foreman 2.9 M
foreman-proxy noarch 1.12.2-1.el7 @foreman 324 k
Removing for dependencies:
foreman-postgresql noarch 1.12.2-1.el7 @foreman 49
tfm-rubygem-foreman_setup noarch 4.0.0-1.fm1_12.el7 @foreman-plugins 218 k
Transaction Summary
=======================================================================================================================================================================================
Remove 3 Packages (+2 Dependent packages)
No comments