Bug 489220 - RFE: Incremental yum updates for small disks and small transactions
Summary: RFE: Incremental yum updates for small disks and small transactions
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-08 19:08 UTC by Christopher Beland
Modified: 2018-07-18 21:32 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-07-18 21:29:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Christopher Beland 2009-03-08 19:08:21 UTC
So I installed Fedora 11 Alpha on a 2GB LiveUSB drive using "livecd-iso-to-disk --overlay-size-mb 1024" and the stock ISO.  Due to the mass rebuild, there are over 900MB of updates pending.  By default, /var/cache/yum is a separate filesystem with a maximum capacity of I think 375MB.

In order to get updates to work, you can manually select certain packages to update, and do a number of update cycles. For example, update all packages starting with a, b, d, e, or f for the first round.  These packages are deleted after they are installed, so then you can proceed to "g", and so on.

An alternative is to mount the hard drive and make /var/cache/yum a symlink to a temporary directory there.  I don't recommend this; I tried it and I made my hard drive temporarily unbootable, I think because of an SELinux relabel triggered by one of the updates.  

The alphabetical method is very time consuming; I'd like to be able to ask people reporting bugs against Fedora 9 or 10: "Try reproducing on the latest Rawhide; just download this ISO, run this command, boot off your USB stick, run 'yum update', and try to reproduce".  That's time consuming enough without having to work around LiveUSB disk space limitations.

It would be much more convenient if yum detected the limited disk space, and divided the update list into smaller chunks.  There's no need to do all of the updates all at once, only the updates where there are cross-package dependencies.  yum is already really good at resolving dependencies automatically, and at being a really convenient program to use, so it seems like a natural enhancement.

Comment 1 James Antill 2009-03-09 15:14:31 UTC
 Some time ago now I tried:

http://people.redhat.com/jantill/yum/commands/yum-iter-update.py

...which was my first attempt at this, which mostly does work but needs to be much more intelligent. Long term were looking at putting something inside yum that will split the transaction ... but it's not high on the list.
 Patches accepted :).

Comment 2 Thierry Vignaud 2010-09-24 15:16:27 UTC
Indeed, I was just going to submit a similar bug report.
This feature is availlable in Mandriva's urpmi for years.
It enables to:
- use less disk while installing or upgrading
- prevent a small glitch to prevent the whole installation (such as a %post or %postun failing though there've been improvements in rpm regarding this)
- prevent an "updated repository during the local system update" to make a download failed and thus the whole upgrade failed.
- ...

Comment 3 seth vidal 2010-09-24 15:23:31 UTC
Thierry,
 If you'd like to help work on yum to implement this feature we'll be glad to get some assistance and/or patches for it.

thanks,
-sv

Comment 4 James Antill 2010-10-15 13:03:19 UTC
The beta plugin I did for bug#640918 should also help your case, feel free to try it out and provide feedback.

Comment 5 Valentina Mukhamedzhanova 2014-03-11 11:10:07 UTC
Closing, since we didn't get a reply.

Comment 6 Christopher Beland 2014-09-30 17:20:49 UTC
That plugin doesn't address the original bug report.

Comment 7 Daniel Mach 2018-07-18 21:29:35 UTC
yum and related packages are no longer actively developed.
They are being replaced with dnf, dnf-utils, etc.

I'm closing this bug because it's most likely never going to be fixed.
If you still consider your bug report important, reopen it, please.

Comment 8 Daniel Mach 2018-07-18 21:32:47 UTC
yum and related packages are no longer actively developed.
They are being replaced with dnf, dnf-utils, etc.

I'm closing this bug because it's most likely never going to be fixed.
If you still consider your bug report important, reopen it, please.


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