<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: wget</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/wget/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>Limiting The Bandwidth Usage of apt-get and wget</title>
      <link>https://chrisjrob.com/2011/03/31/limiting-the-bandwidth-usage-of-apt-get-and-wget/</link>
      <pubDate>Thu, 31 Mar 2011 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2011/03/31/limiting-the-bandwidth-usage-of-apt-get-and-wget</guid>
      <description>
       <![CDATA[
         
         <p>I have to be careful about the bandwidth I use at work; so I limit the
bandwidth of apt-get and wget.</p>

<h2 id="apt-get">apt-get</h2>

<p>For apt-get you just need to create a new file:</p>

<!--more-->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/etc/apt/apt.conf.d/76download
</code></pre></div></div>

<p>with the following contents:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo vim /etc/apt/apt.conf.d/76download 
Acquire {
    Queue-mode "access";
    http {
        Dl-Limit "128";
    };
};
$
</code></pre></div></div>

<p>The above will limit your bandwidth to 128K, adjust this figure to suit
your network.</p>

<p>Alternatively, if you don’t want this change to be set permanently, then
you can specify it in the command line:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get -o Acquire::http::Dl-Limit=128 upgrade
</code></pre></div></div>

<h2 id="wget">wget</h2>

<p>To rate-limit wget, simply edit <code class="language-plaintext highlighter-rouge">/etc/wgetrc</code> or your personal
configuration at <code class="language-plaintext highlighter-rouge">~/.wgetrc</code> and add or edit the following line:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>limit-rate=128k
</code></pre></div></div>

<h2 id="other">other</h2>

<p>Other packages can be configured in different ways, but you could
install <code class="language-plaintext highlighter-rouge">trickle</code> and then read its man page to determine how to use it.
For example (from the man page):</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ trickle -u 128 -d 128 ncftp
</code></pre></div></div>


       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
