How remove packages from custom repos in Katello

  • First find out the UUID of the package you will delete:

Katello[~] # hammer package list --organization-label=rh --product=testrepo
-------------------------------------|------------------------------------------------------
ID                                   | FILENAME                                             
-------------------------------------|------------------------------------------------------
ab214fca-4a00-4275-b019-81d557b4e117 |test.rpm
-------------------------------------|------------------------------------------------------
  • To obtain the ID of repository where the package is located, run the following command:
satellite [~] # hammer repository list --organization-label=rh --product=testrepo
---|----------|----------|--------------|----
ID | NAME     | PRODUCT  | CONTENT TYPE | URL
---|----------|----------|--------------|----
1  | test     | test | yum          |    
---|----------|----------|--------------|----
  • Remove the package from the custom repository "testrepo"
# hammer repository remove-content --id=1 --organization-label=rh --content-ids=ab214fca-4a00-4275-b019-81d557b4e117

Comments

Popular posts from this blog

How to clean all the foreman task and locked task

How to restrict users to send only mail to the local domain in Zimbra

Hardening Script