Skip to content

Install vim Package

An XCCDF Rule

Description

The vim-enhanced package can be installed with the following command:

$ sudo yum install vim-enhanced

Rationale

Vim (Vi IMproved) is an almost compatible version of the UNIX editor vi.

ID
xccdf_org.ssgproject.content_rule_package_vim_installed
Severity
Low
References
Updated



Remediation - Anaconda Pre-Install Instructions


package --add=vim-enhanced

Remediation - OS Build Blueprint


[[packages]]
name = "vim-enhanced"
version = "*"

Remediation - Ansible

- name: Ensure vim-enhanced is installed
  package:
    name: vim-enhanced
    state: present
  tags:
  - CCE-82957-2

Remediation - Puppet

include install_vim-enhanced

class install_vim-enhanced {
  package { 'vim-enhanced':
    ensure => 'installed',
  }

Remediation - Shell Script


if ! rpm -q --quiet "vim-enhanced" ; then
    yum install -y "vim-enhanced"
fi