我不记得我是如何在我的mac上安装saltstack的,所以我尝试尽可能地卸载它.我试过brew uninstall saltstack,pip uninstall salt.我试图看看是否salt -h有任何要说的卸载它,但它没有用.
更新一些系统输出
? pip list | grep salt
? whereis salt-call
? which salt-call
/opt/salt/bin/salt-call
? ls -l /opt/salt
total 0
drwxr-xr-x 45 root wheel 1.5K 24 Aug 13:07 bin/
drwxr-xr-x 8 root wheel 272B 24 Aug 13:07 include/
drwxr-xr-x 14 root wheel 476B 24 Aug 13:07 lib/
drwxr-xr-x 8 root wheel 272B 24 Aug 13:07 openssl/
drwxr-xr-x 3 root wheel 102B 24 Aug 13:07 share/
我猜我从这个链接安装了它:
curl -L https://bootstrap.saltstack.com -o install_salt.sh
sudo sh install_salt.sh -P -M
但它没有说明如何基于此方法卸载它.谁知道?
/选择/盐/斌/盐呼叫
看起来您使用以下.pkg文件安装它:https://repo.saltstack.com/osx/
您可以通过运行一些命令来验证:
???? pkgutil --pkgs | grep salt
com.saltstack.salt
???? pkgutil --pkg-info com.saltstack.salt
package-id: com.saltstack.salt
version: 2016.11.3
volume: /
location: /
install-time: 1504874150
Run Code Online (Sandbox Code Playgroud)
列出安装的文件:
???? pkgutil --files com.saltstack.salt
Library
Library/LaunchDaemons
Library/LaunchDaemons/com.saltstack.salt.api.plist
Library/LaunchDaemons/com.saltstack.salt.master.plist
Library/LaunchDaemons/com.saltstack.salt.minion.plist
Library/LaunchDaemons/com.saltstack.salt.syndic.plist
etc
etc/salt
etc/salt/master.dist
etc/salt/minion.dist
opt
opt/salt
opt/salt/bin
...
Run Code Online (Sandbox Code Playgroud)
停止服务:
???? sudo launchctl unload -w /Library/LaunchDaemons/com.saltstack.salt.minion.plist
Run Code Online (Sandbox Code Playgroud)
行的通的api,master,syndic如果他们正在运行.
首先删除文件:
???? cd /
???? pkgutil --only-files --files com.saltstack.salt | grep -v opt
Library/LaunchDaemons/com.saltstack.salt.api.plist
Library/LaunchDaemons/com.saltstack.salt.master.plist
Library/LaunchDaemons/com.saltstack.salt.minion.plist
Library/LaunchDaemons/com.saltstack.salt.syndic.plist
etc/salt/master.dist
etc/salt/minion.dist
???? pkgutil --only-files --files com.saltstack.salt | grep -v opt | tr '\n' '\0' | xargs -0 sudo rm -f
Run Code Online (Sandbox Code Playgroud)
那么目录:
???? pkgutil --only-dirs --files com.saltstack.salt | grep -v opt
Library
Library/LaunchDaemons
etc
etc/salt
???? sudo rm -fr etc/salt
???? sudo rm -fr opt/salt
Run Code Online (Sandbox Code Playgroud)
最后,删除收据:
???? sudo pkgutil --forget com.saltstack.salt
Forgot package 'com.saltstack.salt' on '/'.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1209 次 |
| 最近记录: |