Page 1 of 1

[SOLVED] Limit Rate of Software Downloads in MCC

PostPosted: Jun 19th, '21, 10:21
by cyclemycle
I still haven't installed Mageia-7.1-Live-Xfce-x86_64, I have been checking it out first and finding my way around. So far I like it, I just need some help with a little problem.

I live in a country where Internet is a Luxury (and unreliable) and bandwidth comes at a premium.

I need to figure out how to limit the rate of download in MCC Software Manager -- Like in Debian edit a conf file in /etc/apt/apt.conf.d/75downloadspeed which will work with Synaptic and apt-get . . .

I think I have found a way to do it with urpmi in a terminal but I haven't tried it out because I need it to work in MCC. But that tells me that there may be a conf file somewhere I can edit.

Is there a specific file for this?

Thank you in advance for any help given.

P.S. I cannot use Mageia 8.

Re: Limit Rate of Software Downloads in MCC

PostPosted: Jun 19th, '21, 11:05
by doktor5000
That would be the following option for urpmi

man urpmi wrote: --limit-rate rate
Try to limit the download speed. rate is given in bytes/sec. This option is not active by default.


You probably want to add that to /etc/urpmi/urpmi.cfg (which also has a separate man page).

Re: Limit Rate of Software Downloads in MCC

PostPosted: Jun 19th, '21, 11:20
by cyclemycle
Thank you, I'll boot it back up and check into it. I could have sworn i look at that . . ..

I'm willing to call this Solved

Re: Limit Rate of Software Downloads in MCC

PostPosted: Jun 20th, '21, 11:01
by morgano
If you have more than one install of Mageia, you can benefit from installing a proxy that caches already downloaded packages, see https://wiki.mageia.org/en/Urpmi-proxy
I found it very useful when i had long copper lines.

Re: Limit Rate of Software Downloads in MCC

PostPosted: Jun 20th, '21, 12:15
by cyclemycle
Well, that's not possible for me. All I have is a museum piece laptop that barely runs any more.

But I think I have my answer by putting in /etc/urpmi/urpmi.cfg:

Example 75k/sec (with capital "K")
Code: Select all
{
    limit-rate:75K
}


Verified as per: https://metacpan.org/dist/urpmi/view/po ... mi.cfg.pod

limit-rate

Same as --limit-rate for all tools. This option allows to control download speed; there is no limitation by default. The number is given in bytes per second, unless a suffix K or M is added.


Thank you for your suggestion.