• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

subscription-manager: command not found

by admin

Red Hat Subscription Management (RHSM) is a customer-driven, end-to-end solution that provides subscription status and management tools and integrates with Red Hat’s system management tools.

If you encounter the below error while running the subscription-manager command:

subscription-manager: command not found

you may install the subscription-manager package as per your choice of distribution.

Distribution Command
CentOS yum install subscription-manager
Fedora dnf install subscription-manager

subscription-manager Command Examples

1. Register and activate Red Hat Subscription:

# subscription-manager register --username your_username --password your_password

2. To unregister your system use unregister switch:

# subscription-manager unregister

3. To get a list of all your available subscriptions use list switch:

# subscription-manager list -available

4. To active it a subscription use the Subscription Pool ID:

# subscription-manager subscribe --pool=Pool ID number

5. Get a status of your consumed subscriptions:

# subscription-manager list –consumed

6. To check your enabled subscriptions use the below command.

# subscription-manager list

7. To remove all your active subscriptions use –all argument:

# subscription-manager remove --all

8. To remove a specific pool:

# subscription-manager unsubscribe --serial=Serial number

9. To list the available service levels:

# subscription-manager service-level --list
# subscription-manager service-level --set=self-support

10. Enable Yum Repositories:

# subscription-manager repos --list

Filed Under: Linux

Some more articles you might also be interested in …

  1. Command line parameters in shell scripts
  2. unlink: command not found
  3. CentOS / RHEL : How to mount filesystems using UUID
  4. “-bash: firewall: command not found” – How to resolve in CentOS/RHEL 7
  5. How to Disable RSH Server in CentOS/RHEL
  6. CentOS / RHEL : How to change the UUID of the filesystem
  7. lsscsi Command Examples in Linux
  8. daemonize: command not found
  9. CentOS / RHEL : Converting an Existing Root Filesystem to LVM Partition
  10. mkfs.ntfs Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright