Subscription-manager for Amazon Linux 2

Hello,

How can we install subscription-manager on Amazon Linux 2 in order to manage packages via Foreman Katello?

[root@ip-10-123-2-166 ~]# subscription-manager --help
-bash: subscription-manager: command not found

[root@ip-10-123-2-166 ~]# yum install subscription-manager
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                                                                                                                                                                             | 3.7 kB  00:00:00     
No package subscription-manager available.
Error: Nothing to do

[root@ip-10-123-2-166 ~]# yum repolist
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
repo id                                                                                                           repo name                                                                                                             status
!amzn2-core/2/x86_64                                                                                              Amazon Linux 2 core repository                                                                                        24,416
amzn2extra-docker/2/x86_64                                                                                        Amazon Extras repo for docker                                                                                             41
repolist: 24,457
[root@ip-10-123-2-166 ~]# 

Regards,

I was able to install subscription-manager on Amazon Linux 2 using Centos7 RPM.

This topic can be closed.

2 Likes

Could you please share the steps to install subscription-manager on Amazon Linux 2 using Centos7 RPM.