Mac 下彻底删除 Aria2

Mac 下想通过 Homebrew 安装 Aria2,将原先手动安装的文件彻底删除.

  1. 列出系统中所有应用的包名,找到被卸载应用相关的包名:
➜  ~ sudo pkgutil --pkgs | grep --color aria2     
aria2.paths
aria2
  1. 根据包名查找相关的文件:
➜  ~ sudo pkgutil --only-files --files aria2.paths
manpaths.d/aria2
paths.d/aria2c
➜  ~ sudo pkgutil --only-files --files aria2      
bin/aria2c
share/doc/aria2/AUTHORS
share/doc/aria2/COPYING
share/doc/aria2/Changelog
share/doc/aria2/NEWS
share/doc/aria2/README
share/doc/aria2/README.html
share/doc/aria2/README.rst
share/doc/aria2/bash_completion/README.txt
share/doc/aria2/bash_completion/aria2c
share/doc/aria2/xmlrpc/README.txt
share/doc/aria2/xmlrpc/aria2mon
share/doc/aria2/xmlrpc/aria2rpc
share/man/man1/aria2c.1
share/man/pt/man1/aria2c.1
share/man/ru/man1/aria2c.1
➜  ~ 
  1. 删除步骤 2 中的文件即可
➜  ~ sudo rm -rf /private/etc/manpaths.d/aria2
➜  ~ sudo rm -rf /private/etc/paths.d/aria2c
➜  ~ sudo rm -rf /usr/local/aria2 

参考:
删除|remove|uninstall aria2 on Mac

你可能感兴趣的:(Mac 下彻底删除 Aria2)