'yum' is not recognized as an internal or external command, operable program or batch file

5,001

'yum' is not recognized as an internal or external command, operable program or batch file.

This is a Windows error message, you need to run your commands inside a shell in your CentOS VM, not at a Windows command prompt.

Share:
5,001

Related videos on Youtube

Bilal
Author by

Bilal

Updated on September 18, 2022

Comments

  • Bilal
    Bilal almost 2 years

    I installed CentOS 7 minimal on VirtualBox; when I type:

    yum install net-tools
    

    I get this error:

    'yum' is not recognized as an internal or external command, operable program or batch file.

    • thrig
      thrig about 8 years
      Hmm, that's probably a bit too minimal. What does something like rpm -qa | egrep 'yum|dnf' show?
    • Julie Pelletier
      Julie Pelletier about 8 years
      Check if /usr/bin/yum exists. If not, you have a broken installation or you're not really on CentOS 7.
    • Julie Pelletier
      Julie Pelletier about 8 years
      Even minimal installation includes yum.
  • Bilal
    Bilal about 8 years
    That's weird, i reboot the VM, and it's worked after that !