PKG安装包安装失败了,该怎么删除
发布网友
发布时间:2022-04-29 00:20
我来回答
共1个回答
热心网友
时间:2022-06-26 07:18
解决方案 Mac有内置的pkgutil命令管理工具:
pkgutil -- Query and manipulate Mac OS X Installer packages and receipts.
通过 pkgutil --pkgs 可以查到安装的pkg包列表,还真有NetworkConnect
有Pkg包的管理工具,那么应该有卸载工具吧,但是mac本身没有找到
在国外的git上找到了 卸载pkg的工具,但是需要安装
官网提示安装步骤:
# OSX Packages UninstallerThis software is aimed to help manage packages uninstalling in OSX.## InstallationInstallation is as simple as:[sudo] bash < <(curl -sL https://raw.github.com/mpapis/pkg_uninstaller/master/pkg-install)Adding to PATH, for system installation (with sudo):echo 'PATH=$PATH:/opt/pkg_uninstaller' >> /etc/profileAdding PATH when installed as user (without sudo):echo 'PATH=$PATH:$HOME/.pkg_uninstaller' >> $HOME/.bash_profileNote the single quotes are important in both cases.
安装后使用pkg-uninstall命令就可卸载mac的pkg包:sudo pkg-uninstall net.juniper.NetworkConnect
卸载后此时在进行安装就可以了