Bug 1119648
| Summary: | [RFE] add parameters for filtering enabled/disabled repos for subscription-manager repos --list | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Daniel Horák <dahorak> |
| Component: | subscription-manager | Assignee: | Chris "Ceiu" Rog <crog> |
| Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | bkearney, crog, ltoscano, mbukatov, pematous, redakkan, sgraf, wpoteat |
| Target Milestone: | rc | Keywords: | FutureFeature |
| Target Release: | 7.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-03-05 13:17:34 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1005618 | ||
|
Description
Daniel Horák
2014-07-15 08:33:52 UTC
Acking 7.1 If this RFE is implemented, don't forget to update the repos module section of the subscription-manager man page with the new --enabled and --disabled options. commit 8ba41573e896b33fccf891dc70f790061bb1f0ef
Author: Chris Rog <crog>
Date: Fri Sep 26 13:22:33 2014 -0400
1119648: Added additional functionality to repo listing.
Added the --list-enabled and --list-disabled options for explicitly
specifying only enabled or disabled repos. --list now acts as a
shorthand for specifying both.
Retested on,
python-rhsm-1.13.6-1.el7.x86_64
subscription-manager-gui-1.13.7-1.el7.x86_64
subscription-manager-firstboot-1.13.7-1.el7.x86_64
subscription-manager-migration-1.13.7-1.el7.x86_64
subscription-manager-plugin-container-1.13.7-1.el7.x86_64
subscription-manager-migration-data-2.0.13-1.el7.noarch
subscription-manager-plugin-ostree-1.13.7-1.el7.x86_64
subscription-manager-debuginfo-1.13.7-1.el7.x86_64
subscription-manager-1.13.7-1.el7.x86_64
New filter options (--list-enabled and --list-disabled) are available for listing only the enabled//disabled repos.
1) --list-enabled
# subscription-manager repos --list-enabled
+----------------------------------------------------------+
Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID: rhel-7-server-optional-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional (Debug RPMs)
Repo URL: https://cdn.qa.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/optional/debug
Enabled: 1
Repo ID: rhel-7-server-rhn-tools-beta-debug-rpms
Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server Beta (Debug RPMs)
Repo URL: https://cdn.qa.redhat.com/content/beta/rhel/server/7/$basearch/rhn-tools/debug
Enabled: 1
Repo ID: rhel-7-server-v2vwin-1-debug-rpms
Repo Name: Red Hat Virt V2V Tool for RHEL 7 (Debug RPMs)
Repo URL: https://cdn.qa.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/v2vwin/debug
Enabled: 1
Repo ID: rhel-7-server-rhn-tools-debug-rpms
Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server (Debug RPMs)
Repo URL: https://cdn.qa.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhn-tools/debug
Enabled: 1
<snip>
2) # subscription-manager repos --list-disabled
+----------------------------------------------------------+
Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID: rhel-rs-for-rhel-7-server-beta-source-rpms
Repo Name: Red Hat Enterprise Linux Resilient Storage (for RHEL 7 Server) Beta (Source RPMs)
Repo URL: https://cdn.qa.redhat.com/content/beta/rhel/server/7/$basearch/resilientstorage/source/SRPMS
Enabled: 0
Repo ID: rhel-rs-for-rhel-7-server-fastrack-debug-rpms
Repo Name: Red Hat Enterprise Linux Resilient Storage (for RHEL 7 Server) - Fastrack (Debug RPMs)
Repo URL: https://cdn.qa.redhat.com/content/fastrack/rhel/server/7/$basearch/resilientstorage/debug
Enabled: 0
Repo ID: rhel-ha-for-rhel-7-server-beta-debug-rpms
Repo Name: Red Hat Enterprise Linux High Availability (for RHEL 7 Server) Beta (Debug RPMs)
Repo URL: https://cdn.qa.redhat.com/content/beta/rhel/server/7/$basearch/highavailability/debug
Enabled: 0
<snip>
3)# subscription-manager repos --list ( displays all the repos avaiable)
# subscription-manager repos --list
+----------------------------------------------------------+
Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID: rhel-7-server-optional-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional (Debug RPMs)
Repo URL: https://cdn.qa.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/optional/debug
Enabled: 1
Repo ID: rhel-7-server-rhn-tools-beta-debug-rpms
Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server Beta (Debug RPMs)
Repo URL: https://cdn.qa.redhat.com/content/beta/rhel/server/7/$basearch/rhn-tools/debug
Enabled: 1
Repo ID: rhel-7-server-v2vwin-1-debug-rpms
Repo Name: Red Hat Virt V2V Tool for RHEL 7 (Debug RPMs)
Repo URL: https://cdn.qa.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/v2vwin/debug
Enabled: 1
Repo ID: rhel-rs-for-rhel-7-server-beta-source-rpms
Repo Name: Red Hat Enterprise Linux Resilient Storage (for RHEL 7 Server) Beta (Source RPMs)
Repo URL: https://cdn.qa.redhat.com/content/beta/rhel/server/7/$basearch/resilientstorage/source/SRPMS
Enabled: 0
Repo ID: rhel-7-server-rhn-tools-debug-rpms
Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server (Debug RPMs)
Repo URL: https://cdn.qa.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhn-tools/debug
Enabled: 1
Repo ID: rhel-rs-for-rhel-7-server-fastrack-debug-rpms
Repo Name: Red Hat Enterprise Linux Resilient Storage (for RHEL 7 Server) - Fastrack (Debug RPMs)
Repo URL: https://cdn.qa.redhat.com/content/fastrack/rhel/server/7/$basearch/resilientstorage/debug
Enabled: 0
<snip>
Marking Verified!!!
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0502.html |