Show Table of Contents
28.4. Installing Composer
To install Composer on a dedicated virtual machine, follow these steps.
Important
Composer is available as a Technology Preview. See the Technology Preview Features Support Scope for more details.
Customers deploying Composer are encouraged to provide feedback to Red Hat.
Prerequisites
- The virtual machine for Composer must be already installed, meet the requirements, be subscribed, and be running.
- The system with repository mirrors must be accessible on network.
- The Composer system must use the same version of Red Hat Enterprise Linux as the system containing repository mirrors.
- You must be connected to the virtual machine and run all the commands there.
- The repository
RHEL-7-Extrasmust be enabled on the system.
Procedure
- Install the Composer packages:
#
yum install lorax-composer composer-cli cockpit-composerNote
If Cockpit is not installed yet, it is implicitly installed as a dependency of the cockpit-composer package. - List the repositories enabled on this machine and note their identifiers:
#
yum repolist - Create a repository configuration file in the
/etc/yum.repos.ddirectory which points to the mirrored repositories. Include the IP address or host name of the virtual machine system. For each of the repository mirrors, run:#
cat >> /etc/yum.repos.d/mirror.repo <<EOF[mirror-REPO-ID] name=NAME baseurl=http://IP-ADDR/cdrom/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release EOFReplace REPO-ID with the repository identifier, NAME with the repository name, and IP-ADDR with the IP address or host name. This will present the repository mirrors to the system with an identifier containing the prefix mirror-. - Verify the repository configuration:
#
yum clean all#yum repolist - Disable the original subscribed repositories from Red Hat content delivery network. For each of the mirrored repositories, run:
#
yum-config-manager --disable REPO-IDReplace REPO-ID with the repository identifier. - Enable Composer to start after each reboot and configure the system firewall:
#
systemctl enable lorax-composer.socket#systemctl enable cockpit.socket#firewall-cmd --add-service=cockpit && firewall-cmd --add-service=cockpit --permanent - The Composer and Cockpit services are started automatically on each system reboot. For this first session after installation, start these services manually:
#
systemctl start lorax-composer# systemctl start cockpit

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.