我已經安裝了工頭在Ubuntu服務器12.04,以下這些指令:卸載工頭
http://theforeman.org/manuals/1.2/quickstart_guide.html#Installation
現在我已經決定,它不適合我 - 但我無法找到如何卸載任何指示。像寶石卸載工頭的各種命令失敗,因爲它似乎被安裝爲寶石。
任何幫助將不勝感激。謝謝,克里斯蒂亞諾
我已經安裝了工頭在Ubuntu服務器12.04,以下這些指令:卸載工頭
http://theforeman.org/manuals/1.2/quickstart_guide.html#Installation
現在我已經決定,它不適合我 - 但我無法找到如何卸載任何指示。像寶石卸載工頭的各種命令失敗,因爲它似乎被安裝爲寶石。
任何幫助將不勝感激。謝謝,克里斯蒂亞諾
我敢肯定,你想出別的東西了現在,但如果其他人被卡在這,這裏是爲我工作的命令:
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
您可能還需要卸載傀儡如果你不使用它之前安裝工長:
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
您也可以運行以下命令以刪除已安裝並不再需要任何其他依賴關係:
sudo apt-get autoremove
最後,現在重新啓動Apache的工頭和木偶CONFIGS已被刪除:
sudo service apache2 restart
我可能會丟失一些東西,但似乎擺脫大部分對我來說。
首先,你應該得到有關與foreman-installer綁定的軟件包列表。運行以下命令來獲取列表:在我的環境
sudo dpkg -l |grep foreman
(Ubuntu的12.04和工頭1.4),它與信息包括「工頭」,「工頭安裝程序」,「工頭-PostgreSQL的返回,「工頭-proxy'和'ruby-foreman-api'。
那麼我們可以用apt-get
刪除上述程序包了:
sudo apt-get remove --purge forman
sudo apt-get remove --purge forman-proxy
sudo apt-get remove --purge ruby-foreman-api
應該去掉上面的命令後,所有工長相關的軟件包。您可以運行dpkg -l |grep foreman
以確保所有工頭相關的包已被移除。
最後,您可以通過sudo apt-get autoremove
刪除其他不再需要的軟件包。
工頭的一些日誌和conf文件夾仍將保留在您的操作系統中,您可能必須手動清除它們。
apt-get remove --purge和apt-get purge有什麼區別? – Warosaurus
@戰龍他們之間沒有任何區別。但'apt-get remove'與'apt-get purge'不同,你可以在http://askubuntu.com/questions/231562/what-is-the-difference-between-apt-get-purge -and-易於得到,刪除 – dalang