Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1406418

Summary: createrepo not cleaning up temporary files
Product: Red Hat Enterprise Linux 7 Reporter: Jan Blazek <jblazek>
Component: createrepoAssignee: Michal Domonkos <mdomonko>
Status: CLOSED ERRATA QA Contact: Eva Mrakova <emrakova>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: emrakova, james.antill, mattiasr, mdomonko, vmukhame
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: createrepo-0.9.9-27.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1297642 Environment:
Last Closed: 2017-08-01 22:16:03 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: 1297642    
Bug Blocks: 1393866    

Comment 5 Karel Srot 2017-07-03 14:15:45 UTC
Copy&Pasting bug description as the original one is private.

Createrepo left uncleared data under /tmp after its running.

[root@localhost tmp]# du -hs createrepo*
310M    createrepoBLrBGG
8.0K    createrepo-p7VGIUt
8.0K    createrepo-piqZxpm
348M    createrepoVF8KlK
[root@localhost tmp]#
[root@localhost tmp]# ll createrepoBLrBGG/garbageid/ -h
total 310M
-rw-r--r--. 1 root root  26M Aug 15 19:29 17d5f1f8c9e3b5a2a5732f7df3d2962be24849508e73a36d9740129a83ba4f6f-other.sqlite
-rw-r--r--. 1 root root 144M Aug 15 19:29 2101bb1b07ad0da2c99672a2a0f5a76031edc2cceb04f617c3411d8b05022864-filelists.sqlite
-rw-r--r--. 1 root root    0 Aug 15 19:29 cachecookie
-rw-r--r--. 1 root root 141M Aug 15 19:29 e806b262efccac7b65455ca6b6fd32c8eb5fad141abd778ad6dbec8ce2685e79-primary.sqlite
drwxr-xr-x. 2 root root 4.0K Aug 15 19:29 packages
-rw-r--r--. 1 root root 3.0K Aug 15 00:03 repomd.xml
[root@localhost tmp]#


It seems that yum also left some files which should have been cleared

Comment 7 Valentina Mukhamedzhanova 2017-07-10 13:08:27 UTC
*** Bug 1439638 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2017-08-01 22:16:03 UTC
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://access.redhat.com/errata/RHBA-2017:2024