Install tar Package
An XCCDF Rule
Description
The tar
package can be installed with the following command:
$ sudo yum install tar
Rationale
The GNU tar
program saves many files together into one archive and
can restore individual files (or all of the files) from the archive. tar
includes multivolume support, automatic archive compression/decompression, the
the ability to perform incremental and full backups. If
- ID
- xccdf_org.ssgproject.content_rule_package_tar_installed
- Severity
- Medium
- Updated
Remediation - Puppet
include install_tar
class install_tar {
package { 'tar':
ensure => 'installed',
}
Remediation - Ansible
- name: Ensure tar is installed
package:
name: tar
state: present
tags:
- enable_strategy
Remediation - OS Build Blueprint
[[packages]]
name = "tar"
version = "*"
Remediation - Anaconda Pre-Install Instructions
package --add=tar
Remediation - Shell Script
if ! rpm -q --quiet "tar" ; then
yum install -y "tar"
fi