2019年1月23日 星期三

Mac 10.14缺了ftp和telnet等指令

macOS 10.14 Mojave因為安全的理由缺了像是ftp, telnet等指令,但有時候要從anonymous FTP直接抓東西很需要此指令,在安裝Homebrew的狀況下,可用指令安裝:
  • brew install inetutils

安裝完除了ftp以外,telnet等指令也被安裝回去了~
$ brew info inetutils
inetutils: stable 1.9.4 (bottled)
GNU utilities for networking
https://www.gnu.org/software/inetutils/
/usr/local/Cellar/inetutils/1.9.4_1 (107 files, 2.6MB) *
  Poured from bottle on 2019-01-16 at 20:28:59
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/inetutils.rb
==> Dependencies
Required: libidn ✔
==> Caveats
The following commands have been installed with the prefix 'g'.

    dnsdomainname
    ftp
    rcp
    rexec
    rlogin
    rsh
    telnet

If you really need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:

    PATH="/usr/local/opt/inetutils/libexec/gnubin:$PATH"
==> Analytics
install: 3,665 (30 days), 11,437 (90 days), 35,582 (365 days)
install_on_request: 3,656 (30 days), 11,429 (90 days), 35,535 (365 days)
build_error: 0 (30 days)


參考資料

_EOF_

沒有留言:

張貼留言