Skip to content

Commit

Permalink
only yum clean metadata and dbcache (#280)
Browse files Browse the repository at this point in the history
no need to clean all which also removes caached RPMs
  • Loading branch information
evgeni authored Dec 18, 2018
1 parent fff3520 commit a7426bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def register_systems(org_name, activationkey):
def unregister_system():
"""Unregister the host using `subscription-manager`."""
print_generic("Cleaning old yum metadata")
call_yum("clean", "all")
call_yum("clean", "metadata dbcache")
print_generic("Unregistering")
exec_failok("/usr/sbin/subscription-manager unregister")
exec_failok("/usr/sbin/subscription-manager clean")
Expand Down

0 comments on commit a7426bc

Please sign in to comment.