Yum cannot download large RPM package (Centos minimal 1511)

Issues related to applications and software problems
Post Reply
lqdung17.02
Posts: 3
Joined: 2017/08/14 09:09:34

Yum cannot download large RPM package (Centos minimal 1511)

Post by lqdung17.02 » 2017/08/14 12:40:49

Hi everybody,

I got an issue when trying to use yum to download a larger RPM package (4710MB).
Yum sees file size is ~ 613MB

I have found the same issue at https://serverfault.com/questions/52578 ... r-than-2gb
And from this link https://bugzilla.redhat.com/show_bug.cgi?id=612409
=> yum-metadata-parser-1.1.2-16.el6 is fixed version.

Yum info:
[root@omnivista ~]# rpm -qa | grep yum
yum-plugin-fastestmirror-1.1.31-34.el7.noarch
yum-metadata-parser-1.1.4-10.el7.x86_64
yum-3.4.3-132.el7.centos.0.1.noarch

System info:
[root@omnivista ~]# cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)

I think the issue exactly is yum-metadata-parser-1.1.4-10.el7.x86_64 cannot parse int36.
How can I downgrade yum-metadata-parser-1.1.4-10.el7 to yum-metadata-parser-1.1.2-16.el6?
or
Can I use curl to download the RPM package then use yum to perform an installation?

Please help me!
Thank you very much!

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Yum cannot download large RPM package (Centos minimal 1511)

Post by TrevorH » 2017/08/14 12:46:35

Personally I'd say your package is broken. What on earth created a DVD sized single RPM and more important, why?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Yum cannot download large RPM package (Centos minimal 1511)

Post by avij » 2017/08/14 14:09:12

rpm -q yum-metadata-parser --changelog says it has already fixed bz#612409.

Yes, you can use curl to download the package and then use yum or rpm to install the downloaded package.

Perhaps your disk is full and it can't download the huge package? Can you reproduce this on a CentOS 7.3 machine? Try yum update to update your 7.2 to 7.3.

lqdung17.02
Posts: 3
Joined: 2017/08/14 09:09:34

Re: Yum cannot download large RPM package (Centos minimal 1511)

Post by lqdung17.02 » 2017/08/14 14:18:32

TrevorH wrote:Personally I'd say your package is broken. What on earth created a DVD sized single RPM and more important, why?
Hi TrevorH,
May be I don't understand your help, my system can upgrade from the large package successfully.
May I missed some principles when packaging an RPM?
Please help me clarify this.
Thanks.

lqdung17.02
Posts: 3
Joined: 2017/08/14 09:09:34

Re: Yum cannot download large RPM package (Centos minimal 1511)

Post by lqdung17.02 » 2017/08/14 14:46:54

avij wrote:rpm -q yum-metadata-parser --changelog says it has already fixed bz#612409.

Yes, you can use curl to download the package and then use yum or rpm to install the downloaded package.

Perhaps your disk is full and it can't download the huge package? Can you reproduce this on a CentOS 7.3 machine? Try yum update to update your 7.2 to 7.3.
Hi avij,

Here is my disk info:
[root@omnivista ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 46G 1,1G 42G 3% /
devtmpfs 7,8G 0 7,8G 0% /dev
tmpfs 7,8G 0 7,8G 0% /dev/shm
tmpfs 7,8G 540K 7,8G 1% /run
tmpfs 7,8G 0 7,8G 0% /sys/fs/cgroup
/dev/sda1 239M 93M 130M 42% /boot
/dev/mapper/vgdata-lvdata 252G 15G 225G 7% /opt
tmpfs 1,6G 0 1,6G 0% /run/user/0

So the disk is full is not reason, I'll try on Centos 7.3.
Do you have other ways to solve the big package problem like split to small files,...?
Mor info: my RPM package is big because the file contains a big image (ovf ~ 3GB).

Thank you.

Post Reply