RockyLinuxでclear,whichコマンドを使いたいときにインストールするパッケージをBingチャットに聞いてみた。
実行環境
[root@07c9ffc712b3 /]# cat /etc/*release | head -1 Rocky Linux release 8.8 (Green Obsidian)
質問と回答
Rocky Linuxでclear,whichコマンドが使いたいときにインストールするパッケージを教えてください
Rocky Linuxで`clear`と`which`コマンドを使いたい場合、以下のパッケージをインストールする必要があります:
- `clear`コマンド: `ncurses`パッケージをインストールします⁶。以下のコマンドを使用してインストールできます:
```bash
sudo yum install ncurses
```
- `which`コマンド: `which`パッケージをインストールします⁴。以下のコマンドを使用してインストールできます:
```bash
sudo yum install which
```これにより、`clear`と`which`コマンドが使用可能になります。
ソース: Bing との会話 2023/10/7
(1) clear command not found. Install Clear on CentOS 8 - Globedrill. https://globedrill.com/clear-command-not-found-install-clear-on-centos-8/.
(2) How to use Yum package Manager on Rocky Linux - VITUX. https://vitux.com/yum-rocky-linux/.
(3) Installing and removing software packages in Rocky… | TransIP. https://www.transip.eu/knowledgebase/entry/593-installing-removing-software-packages-rocky/.
(4) . https://bing.com/search?q=Rocky+Linux+which+command+install+package.
(5) Software Management - Documentation - Rocky Linux. https://docs.rockylinux.org/books/admin_guide/13-softwares/.
(6) RockyLinux8 全コマンド一覧 (最小構成) - えん通. https://www.en2blog.com/rockylinux8-command-list-all-min.
(7) Packaging And Developer Guide - Documentation - Rocky Linux. https://docs.rockylinux.org/guides/package_management/package_dev_start/.
実施結果
# which -> 未インストール [root@07c9ffc712b3 /]# which which bash: which: command not found # clear -> 未インストール [root@07c9ffc712b3 /]# clear bash: clear: command not found # clear,whichをインストール [root@07c9ffc712b3 /]# yum install -y ncurses which Last metadata expiration check: 0:01:42 ago on Sat Oct 7 10:19:50 2023. Dependencies resolved. ======================================================================================================================================================================================================================================================================== Package Architecture Version Repository Size ======================================================================================================================================================================================================================================================================== Installing: ncurses x86_64 6.1-9.20180224.el8_8.1 baseos 386 k which x86_64 2.21-18.el8 baseos 48 k Transaction Summary ======================================================================================================================================================================================================================================================================== Install 2 Packages ... Complete! # which -> インストールOK [root@07c9ffc712b3 /]# which which /usr/bin/which # clear -> インストールOK [root@07c9ffc712b3 /]# which clear /usr/bin/clear