UJP - ftp telnet を使うためにinetutilsをインストール

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

ブログ - ftp telnet を使うためにinetutilsをインストール

ftp telnet を使うためにinetutilsをインストール

カテゴリ : 
Apple » Mac Pro 2013
ブロガー : 
ujpblog 2024/2/5 12:06
 普段,CyberDuckを使っているしプロトコルとしては使ってなかったので気づかなかったけど,macOS High Sierra以降,ftpコマンドが無くなっていた.
 今回,i地震をインストールして地震データを自分の立てたFTPサーバにアップロードするようにしたのだけど,FTPのテストをする環境がなくてちょっと困った.

 と言うことで,FTPコマンドを使えるようにするには,brewでinetutilsをインストールすれば良いことがわかったので入れてみた.

 まずはパッケージの情報.

$ brew info inetutils🆑
==> inetutils: stable 2.5 (bottled)
GNU utilities for networking
https://www.gnu.org/software/inetutils/
Conflicts with:
  telnet (because both install `telnet` binaries)
  tnftp (because both install `ftp` binaries)
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/i/inetutils.rb
License: GPL-3.0-or-later
==> Dependencies
Build: help2man ✘
Required: libidn2 ✔
==> Caveats
Only the following commands have been installed without the prefix 'g'.

    dnsdomainname
    ftp
    rcp
    rexec
    rlogin
    rsh
    telnet

If you really need to use other 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: 2,235 (30 days), 5,250 (90 days), 11,931 (365 days)
install-on-request: 2,230 (30 days), 5,234 (90 days), 11,904 (365 days)
build-error: 0 (30 days)
$
 なるほど.r系のコマンドとftp,telnetが弱いコマンド値うことで排除されているのか.でもinstall-on-requestを見るとかなりの数のインストールがあるので,ニーズはある模様.
$ brew install inetutils
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
helm-docs                                                 sui
==> New Casks
lunarbar

You have 5 outdated formulae installed.

==> Downloading https://ghcr.io/v2/homebrew/core/inetutils/manifests/2.5
######################################### 100.0%
==> Fetching inetutils
==> Downloading https://ghcr.io/v2/homebrew/core/inetutils/blobs/sha256:ce0fe97
b4c1706fb77d17a8672148be394bd8a5e81bdcf44e9ad8cb3facf730d
######################################### 100.0%
Error: Cannot install inetutils because conflicting formulae are installed.
  telnet: because both install `telnet` binaries

Please `brew unlink telnet` before continuing.

Unlinking removes a formula's symlinks from /usr/local. You can
link the formula again after the install finishes. You can --force this
install, but the build may fail or cause obscure side effects in the
resulting software.
[MacPro2013:nobuaki 11:53:08 ~ ]
$
 競合しているtelnetがインストールされているためインストールが失敗した.確かに振り返ると過去にtelnetコマンドをインストールしていた.

 telnetをアンインストール.
$ brew uninstall telnet🆑
Uninstalling /usr/local/Cellar/telnet/294... (4 files, 208KB)
$
 inetutilsをインストール.

$ brew install inetutils🆑
==> Downloading https://ghcr.io/v2/homebrew/core/inetutils/manifests/2.5
Already downloaded: /Users/nobuaki/Library/Caches/Homebrew/downloads/42ca3b9ddd4
c75c573912245731f7931d5c89e98cf64697faa44586c33283ba3--inetu
tils-2.5.bottle_manifest.json
==> Fetching inetutils
==> Downloading https://ghcr.io/v2/homebrew/core/inetutils/blobs/sha256:ce0fe97b
4c1706fb77d17a8672148be394bd8a5e81bdcf44e9ad8cb3facf730d
Already downloaded: /Users/nobuaki/Library/Caches/Homebrew/downloads/c09cabc6777
4fb8e96b5c6a50043913fa09e34915223091c82ef109af77a0e64--inetu
tils--2.5.monterey.bottle.tar.gz
==> Pouring inetutils--2.5.monterey.bottle.tar.gz
==> Caveats
Only the following commands have been installed without the prefix 'g'.

    dnsdomainname
    ftp
    rcp
    rexec
    rlogin
    rsh
    telnet

If you really need to use other 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"
==> Summary
🍺  /usr/local/Cellar/inetutils/2.5: 107 files, 3MB
==> Running `brew cleanup inetutils`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
$
 /usr/local/opt/inetutils/配下にインストールされた模様.
 ftpコマンドを確認.
$ ls -la /usr/local/bin/ftp🆑
lrwxr-xr-x 1 ujpadmin admin 31  2  5 11:56 /usr/local/bin/ftp -> ../Cellar/inetutils/2.5/bin/ftp
$ ls -la /usr/local/bin/telnet🆑
lrwxr-xr-x 1 ujpadmin admin 34  2  5 11:56 /usr/local/bin/telnet -> ../Cellar/inetutils/2.5/bin/telnet
$
 /usr/local/bin/へシンボリックリンクが貼られているので,/usr/local/opt/inetutils/libexec/gnubinへのパスは不要な模様.
 何がインストールされたか確認.
$ ls -la /usr/local/opt/inetutils/libexec/gnubin🆑
total 0
drwxr-xr-x 18 ujpadmin admin 576 12 30 03:08 .
drwxr-xr-x 15 ujpadmin admin 480 12 30 03:08 ..
lrwxr-xr-x  1 ujpadmin admin  24 12 30 03:08 dnsdomainname -> ../../bin/gdnsdomainname
lrwxr-xr-x  1 ujpadmin admin  14 12 30 03:08 ftp -> ../../bin/gftp
lrwxr-xr-x  1 ujpadmin admin  19 12 30 03:08 hostname -> ../../bin/ghostname
lrwxr-xr-x  1 ujpadmin admin  19 12 30 03:08 ifconfig -> ../../bin/gifconfig
lrwxr-xr-x  1 ujpadmin admin  17 12 30 03:08 logger -> ../../bin/glogger
lrwxr-xr-x  1 ujpadmin admin  15 12 30 03:08 ping -> ../../bin/gping
lrwxr-xr-x  1 ujpadmin admin  16 12 30 03:08 ping6 -> ../../bin/gping6
lrwxr-xr-x  1 ujpadmin admin  14 12 30 03:08 rcp -> ../../bin/grcp
lrwxr-xr-x  1 ujpadmin admin  16 12 30 03:08 rexec -> ../../bin/grexec
lrwxr-xr-x  1 ujpadmin admin  17 12 30 03:08 rlogin -> ../../bin/grlogin
lrwxr-xr-x  1 ujpadmin admin  14 12 30 03:08 rsh -> ../../bin/grsh
lrwxr-xr-x  1 ujpadmin admin  15 12 30 03:08 talk -> ../../bin/gtalk
lrwxr-xr-x  1 ujpadmin admin  17 12 30 03:08 telnet -> ../../bin/gtelnet
lrwxr-xr-x  1 ujpadmin admin  15 12 30 03:08 tftp -> ../../bin/gtftp
lrwxr-xr-x  1 ujpadmin admin  21 12 30 03:08 traceroute -> ../../bin/gtraceroute
lrwxr-xr-x  1 ujpadmin admin  16 12 30 03:08 whois -> ../../bin/gwhois
$
 おお!talkコマンド...元祖チャットシステムだな.隣の席に座った先輩の笹川さんとよくtalkコマンドで会話していた.懐かしい.

トラックバック


広告スペース
Google