Bug 684369 - yum don't removes temporary files
Summary: yum don't removes temporary files
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-11 23:49 UTC by nucleo
Modified: 2014-01-21 23:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-12 18:32:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description nucleo 2011-03-11 23:49:29 UTC
Description of problem:
yum don't removes temporary files if transaction canceled

Version-Release number of selected component (if applicable):
yum-3.2.29-4.fc15

How reproducible:
Every time.

Steps to Reproduce:
1. Run as root 'yum install mc'
2. 'Is this ok [y/N]' answer "N".
  
Actual results:
/tmp/yum_save_tx*yumtx file not deleted after yum terminated.

Expected results:
Temporary files should deleted after yum terminated.

Additional info:
If answer "Y" and transaction complete temporary files deleted.

Comment 1 seth vidal 2011-03-12 18:32:36 UTC
that is a saved transaction file. It is intentionally left there following a transaction so that if you want to run the same thing again you won't have to depsolve it.

Comment 2 nucleo 2011-03-12 18:39:23 UTC
Why transaction saved as temporary file in /tmp instead of /var/lib/yum or /var/cache/yum?
Why in Fedora 14 no such problems with temporary files?

Comment 3 seth vidal 2011-03-12 18:47:31 UTC
1. b/c /tmp is find-able by the user
2. f14 doesn't have this feature.


why is a tmp file a problem? it's a tmpfile.

Comment 4 nucleo 2011-03-12 19:02:55 UTC
I noticed problem when I saw many *.yumtx files in /tmp.
Those files should be removed manually after every canceled transaction.
Maybe this feature should be added to 'yum history' and then use storage where yum saves history instead of /tmp. Then will be no need to search this files.

Comment 5 nucleo 2011-03-13 14:50:40 UTC
Is there option to disable this feature?
I didn't find such option in man yum.conf.

Comment 6 nucleo 2011-03-15 22:44:04 UTC
Just a thought about /tmp is find-able by the user:
yum can print message about where transaction file saved.


Note You need to log in before you can comment on or make changes to this bug.