Solution to bash: vim: command not found in Docker

There are two types of Linux systems:

  1. RedHat series: Redhat, Centos, Fedora, etc.
  2. Debian series: Debian, Ubuntu, etc.

The package management tool of the RedHat series is yum

The package management tool of the Debian series is apt-get

question:

bash: vim: command not found

Solution steps:

  • Debian series
1.第一步
apt-get update

2.第二步
apt-get install -y vim

  • RedHat series
1.第一步
yum update

2.第二步
yum install -y vim

Guess you like

Origin blog.csdn.net/tangsiqi130/article/details/133396433