F6F - FreeBSD ports 反安裝裝到一半的套件 - FreeBSD ports 反安裝裝到一半的套件

FreeBSD ports 反安裝裝到一半的套件

如果你編某個 ports 已經編到一半了,回來看才發現它開始編 X 了,忘了加 WITHOUT_X11 或是 make config:

  • Ctrl-C 中斷現在編的程序
  • 到那個 ports 的目錄
  • make all-depends-list | awk -F '/' '{print $5}' | xargs pkg_deinstall

好早以前發現的,每次都忘記…

自 po 自記

Manual Pages: ssh-keygen

-R hostname Removes all keys belonging to hostname from a known_hosts file. This option is useful to delete hashed hosts (see the -H option above).

每次都忘了。當 ssh 的 known_hosts 裡面的 key 不一樣時,會跳出不能登的訊息,可以直接刪掉那個檔案,也可以開檔把特定行數的 host 拿掉。

其實用 ssh-keygen -R gaisq.cs.ccu.edu.tw 就可以幫你處理。特別是加過 hashed 的 known_hosts 也可以。

另外還有 -F 與 -H 參數,都是與 known_hosts 相關的。