How Do You Install Hammer on Linux?

Problem scenario
You want to install the Hammer CLI on a Red Hat derivative of Linux (e.g., CentOS/RHEL/Fedora). What should you do?

Solution
Overview
"Hammer is a powerful command-line tool provided with Red Hat Satellite 6. You can use Hammer to configure and manage a Red Hat Satellite Server either through CLI commands or automation in shell scripts. Hammer also provides an interactive shell." (This quote was taken from RedHat's site.)

Prerequisite
Install Foreman if it has not been installed yet. If you need assistance, see "How Do You Install Foreman on a RHEL Server?"

Procedures
Run these commands:

sudo rpm -ivh http://yum.theforeman.org/releases/latest/el7/x86_64/foreman-release.rpm
sudo yum -y install rubygem-hammer_cli_foreman

To learn more about how to configure Hammer and use it, see these postings:

Leave a comment

Your email address will not be published. Required fields are marked *