Bug 284381 - Yum is downloading primary.sqlite even on "yum clean".
Summary: Yum is downloading primary.sqlite even on "yum clean".
Keywords:
Status: CLOSED DUPLICATE of bug 276151
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 7
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-09-10 09:26 UTC by Jan ONDREJ
Modified: 2014-01-21 22:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-09-10 13:03:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jan ONDREJ 2007-09-10 09:26:08 UTC
Description of problem:
Yum is repeatedly downloading primary.sqlite.bz2 when old repomd.xml downloaded
from a mirror. This happens on "yum clean" command too. I am unable to clean
metadata with yum commands, only with:
  rm -rf /var/cache/yum/*
command.

Version-Release number of selected component (if applicable):
yum-3.2.4-2.fc7

How reproducible: sometimes, when wrong mirror selected


Steps to Reproduce:
1. try to update from old or very new mirror. May be you can simulate this by
touching /var/cache/yum/fedora/repomd.xml file.
2. yum update
3. yum clean
  
Actual results:
Yum is searching for primary.sqlite file corresponding to it's repomd.xml (or
other file?)

[root@hnedy ~]# yum clean all
primary.sqlite.bz2        100% |=========================| 3.8 MB    00:06
ftp://fedora.bu.edu/releases/7/Everything/i386/os/repodata/primary.sqlite.bz2: [
Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.sqlite.bz2        100% |=========================| 3.8 MB    00:14
http://ftp.kddilabs.jp/Linux/packages/fedora/releases/7/Everything/i386/os/repod
ata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.sqlite.bz2        100% |=========================| 3.8 MB    00:00
http://ftp.upjs.sk/pub/fedora/linux/releases/7/Everything/i386/os/repodata/prima
ry.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.sqlite.bz2        100% |=========================| 3.8 MB    00:08
http://ftp.usf.edu/pub/fedora/linux/releases/7/Everything/i386/os/repodata/prima
...

Expected results:
Yum data cleanup.

Additional info:
Same problem for "yum clean metadata".
This command downloads more unnecessary data from mirrors, generating high
mirror loads on client and server side. May be yum can detect this after
downloading 2-3 files and re-download repomd.xml from same server. I think "yum
clean all" with no network access is recommended.

Comment 1 Seth Vidal 2007-09-10 13:03:48 UTC

*** This bug has been marked as a duplicate of 276151 ***


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