LoginSignup
0
1

More than 1 year has passed since last update.

Dockerのmysqlコンテナ、Debianでlessコマンドを使う

Last updated at Posted at 2022-04-26

Dockerのmysqlのコンテナでlessを使おうとしたがbash: less: command not foundと出てしまった。
lessをインストールしようとyum install lessをしたがこれもbash: yum: command not found
yumは、Fedora、RedHat、CentOSなどのディストリビューションで標準として利用されるパッケージ管理ソフト。
当該コンテナのOSを確認。

cat /etc/issue
Debian GNU/Linux 10 \n \l

Debianだった。
Debian、Ubuntuなどのディストリビューションのパッケージ管理ソフトはyumではなくapt。
なので、一応アップデートしたあと
apt-get update
以下でlessをインストール
apt-get install less -y
lessが使えるようになった

参考記事

https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q13207829133
https://eng-entrance.com/linux-os-version
https://qiita.com/toshihirock/items/6f46c36c9b567c915d84

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1