在你開始之前
此版本的Wireshark需要macOS 10.12或更高版本。如果您運行的是macOS的早期版本,則可以使用其他打包系統(例如Homebrew或MacPorts)進行安裝。
快速設置
要安裝Wireshark,請將Wireshark應用程序捆綁包拖到Applications文件夾中。
為了能夠捕獲數據包,請安裝 Install ChmodBPF 軟件包。
如果要將 Wireshark, TShark, capinfos, editcap和 其他命令行實用程序 的路徑添加到系統PATH,請安裝 Add Wireshark到系統路徑 包。
軟件包安裝詳細信息
ChmodBPF安裝程序將寫入以下位置:
/Library/LaunchDaemons/org.wireshark.ChmodBPF.plist。啟動守護程序,用於在系統啟動時調整系統的數據包捕獲設備(/ dev / bpf *)的權限。
/Library/Application Support/Wireshark/ChmodBPF. 啟動守護程序屬性列表的副本,以及啟動守護程序運行的腳本。
創建名為“ access_bpf”的安裝程序組。打開包的用戶將添加到組中。
系統路徑安裝程序將寫入以下位置:
/etc/paths.d/Wireshark。此文件中的文件夾名稱會自動添加到PATH中
/etc/manpaths.d/Wireshark。此文件中的文件夾名稱由man命令使用。
假定Wireshark安裝在/ Applications中。
解除安裝
要卸載Wireshark,請執行以下操作:
-
1.Remove /Applications/Wireshark.app
-
2.Remove /Library/Application Support/Wireshark
您可以通過 此磁盤上的卸載ChmodBPF軟件包或通過Wireshark › 關於Wireshark › 文件夾 › macOS Extras來卸載ChmodBPF 。您還可以通過執行以下操作手動將其卸載:
-
1.Unload the “org.wireshark.ChmodBPF.plist” launchd job
-
2.Remove /Library/LaunchDaemons/org.wireshark.ChmodBPF.plist
-
3.Remove the “access_bpf” group.
您可以通過從系統路徑 包中刪除Remove Wireshark來卸載系統路徑組件,該軟件包位於此磁盤上,也可以通過Wireshark › About Wireshark › Folders › macOS Extras來卸載。您還可以通過執行以下操作手動將其卸載:
1.Remove /etc/paths.d/Wireshark
2.Remove /etc/manpaths.d/Wireshark