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
- References
- Updated
Remediation - Anaconda Pre-Install Instructions
package --add=tar
Remediation - OS Build Blueprint
[[packages]]
name = "tar"
version = "*"
Remediation - Ansible
- name: Ensure tar is installed
package:
name: tar
state: present
tags:
- CCE-82966-3
Remediation - Puppet
include install_tar
class install_tar {
package { 'tar':
ensure => 'installed',
}
Remediation - Shell Script
if ! rpm -q --quiet "tar" ; then
yum install -y "tar"
fi