Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #201018

Re: Upgrading with a low data cap

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: Upgrading with a low data cap
Date 2018-10-08 17:10 +0200
Message-ID <wGFkt-n8-1@gated-at.bofh.it> (permalink)
References <wGhrP-3fp-19@gated-at.bofh.it> <wGyM1-53G-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon 08 Oct 2018 at 08:06:56 (+0000), Curt wrote:
> On 2018-10-07, Richard Owlett <rowlett@cloud85.net> wrote:
> > All my machines have use Stretch DVD1 for installation.
> > I have a low monthly data cap - currently at my limit.
> > One machine has an apt-get update and upgrade with the addition of some 
> > packages not on DVD1.
> > I've not intentionally deleted any cached files.
> > Is it possible to use the cached data on another machine?
> > What should I be reading?
> > TIA
> 
> I gave a perfunctory gander at the following page.
> 
> https://www.pcsuggest.com/reuse-deb-files-to-install-software-in-many-offline-machine/
> 
> I found the "echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/99no-translation" 
> tip of particular interest (actually that's not how he does it but the result is the same).
> 
> This apparently avoids the downloading of the supernumerary Translation
> files which only those living on the Babel Tower really have a pressing
> need for.
> 
> I'm reading that you won't have long descriptions (with apt-cache?) with this
> parameter toggled on.
> 
> man apt.conf Languages section for details (which I'm too stupid to
> really grasp entirely but whatever).

On this 1843-package stretch the statistics are:
 45MB /var/lib/apt/lists/*Packag*
 31MB /var/lib/apt/lists/*Translat*
 40MB /var/lib/apt/lists/*Sourc*
 67MB /var/lib/apt/lists/*Contents* (for apt-file I believe)
182MB total

OTOH freshly installed 1819-package (no DE) system gives:
$ du -sh /var/cache/apt/archives/
du: cannot read directory '/var/cache/apt/archives/partial': Permission denied
2.9G    /var/cache/apt/archives/

This laptop runs a mature¹ apt-cacher-ng for wheezy/jessie/stretch
systems with the default expiration parameters and gives:
$ du -sh /var/cache/apt-cacher-ng/
13G     /var/cache/apt-cacher-ng/

I would call that a pretty marginal saving. I've never bothered to
play with lists the same way as I did with packages. And really, the
hint is in the file locations: mess with /var/cache/ all you like,
but don't mess with /var/lib/. If you screw /var/cache/, it's
legitimate to delete it. You *can* clear specifically
/var/lib/apt/lists/ (leave partial/ and lock) but that's not the
same as juggling them.

Under "KNOW THE RISK", it spells out the self-imposed problem with
the method outlined below. dpkg -i *deb   is a stupid thing to do
under the circumstances. Far better to stuff the cache with debs
and leave the apt family do their job.

¹ Looks like I started it running in May 2014 by importing at least
1500 packages without preserving their timestamps. The entirety has
been reimported twice since, from wheezy via jessie to stretch.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-07 15:40 +0200
  Re: Upgrading with a low data cap Dan Purgert <dan@djph.net> - 2018-10-07 16:00 +0200
    Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-07 16:10 +0200
      Re: Upgrading with a low data cap David Wright <deblis@lionunicorn.co.uk> - 2018-10-08 03:30 +0200
        Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-08 13:40 +0200
          Re: Upgrading with a low data cap Dan Purgert <dan@djph.net> - 2018-10-08 14:10 +0200
            Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-08 14:40 +0200
              Re: Upgrading with a low data cap Dan Purgert <dan@djph.net> - 2018-10-08 17:10 +0200
          Re: Upgrading with a low data cap Dan Ritter <dsr@randomstring.org> - 2018-10-08 14:50 +0200
          Re: Upgrading with a low data cap David Wright <deblis@lionunicorn.co.uk> - 2018-10-08 18:00 +0200
            Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-08 21:30 +0200
              Re: Upgrading with a low data cap Brian <ad44@cityscape.co.uk> - 2018-10-08 21:50 +0200
                Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-08 22:40 +0200
                Re: Upgrading with a low data cap Brian <ad44@cityscape.co.uk> - 2018-10-08 22:50 +0200
                Re: Upgrading with a low data cap Brian <ad44@cityscape.co.uk> - 2018-10-09 10:50 +0200
              Re: Upgrading with a low data cap Brian <ad44@cityscape.co.uk> - 2018-10-08 21:50 +0200
              Re: Upgrading with a low data cap David <bouncingcats@gmail.com> - 2018-10-09 01:30 +0200
                Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-09 03:50 +0200
                Re: Upgrading with a low data cap Kenneth Parker <sea7kenp@gmail.com> - 2018-10-09 04:40 +0200
                Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-09 16:50 +0200
                Re: Upgrading with a low data cap Dan Purgert <dan@djph.net> - 2018-10-09 12:10 +0200
                Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-09 17:00 +0200
                Re: Upgrading with a low data cap Dan Purgert <dan@djph.net> - 2018-10-09 17:50 +0200
                Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-09 18:20 +0200
                Re: Upgrading with a low data cap Brian <ad44@cityscape.co.uk> - 2018-10-09 18:30 +0200
                Re: Upgrading with a low data cap Gene Heskett <gheskett@shentel.net> - 2018-10-09 22:10 +0200
                Re: Upgrading with a low data cap Curt <curty@free.fr> - 2018-10-10 10:00 +0200
                Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-14 14:10 +0200
                Re: Upgrading with a low data cap David <bouncingcats@gmail.com> - 2018-10-15 11:10 +0200
                Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-15 14:10 +0200
                Re: Upgrading with a low data cap Gene Heskett <gheskett@shentel.net> - 2018-10-15 16:10 +0200
                Re: Upgrading with a low data cap Dan Purgert <dan@djph.net> - 2018-10-15 17:00 +0200
                Re: Upgrading with a low data cap Gene Heskett <gheskett@shentel.net> - 2018-10-15 17:00 +0200
                Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-17 16:50 +0200
                Re: Upgrading with a low data cap Dan Ritter <dsr@randomstring.org> - 2018-10-17 17:20 +0200
                Re: Upgrading with a low data cap John Hasler <jhasler@newsguy.com> - 2018-10-17 17:20 +0200
                Re: Upgrading with a low data cap rhkramer@gmail.com - 2018-10-10 16:00 +0200
                Re: Upgrading with a low data cap Gene Heskett <gheskett@shentel.net> - 2018-10-10 17:00 +0200
                Re: Upgrading with a low data cap David Wright <deblis@lionunicorn.co.uk> - 2018-10-10 17:20 +0200
                Re: Upgrading with a low data cap Gene Heskett <gheskett@shentel.net> - 2018-10-10 17:50 +0200
                Re: Upgrading with a low data cap Gene Heskett <gheskett@shentel.net> - 2018-10-09 21:50 +0200
                Re: Upgrading with a low data cap Brian <ad44@cityscape.co.uk> - 2018-10-09 22:00 +0200
                Re: Upgrading with a low data cap Gene Heskett <gheskett@shentel.net> - 2018-10-09 22:20 +0200
              Re: Upgrading with a low data cap Alexandre Rossi <alexandre.rossi@gmail.com> - 2018-10-10 15:10 +0200
                Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-14 14:30 +0200
  Re: Upgrading with a low data cap Reco <recoverym4n@enotuniq.net> - 2018-10-07 16:00 +0200
  Re: Upgrading with a low data cap Brian <ad44@cityscape.co.uk> - 2018-10-07 16:40 +0200
    Re: Upgrading with a low data cap Brian <ad44@cityscape.co.uk> - 2018-10-08 20:20 +0200
  Re: Upgrading with a low data cap Cindy-Sue Causey <butterflybytes@gmail.com> - 2018-10-07 17:00 +0200
  Re: Upgrading with a low data cap songbird <songbird@anthive.com> - 2018-10-07 22:00 +0200
    Re: Upgrading with a low data cap mick crane <mick.crane@gmail.com> - 2018-10-08 11:40 +0200
      Re: Upgrading with a low data cap songbird <songbird@anthive.com> - 2018-10-08 13:20 +0200
        Re: Upgrading with a low data cap mick crane <mick.crane@gmail.com> - 2018-10-08 13:50 +0200
          Re: Upgrading with a low data cap songbird <songbird@anthive.com> - 2018-10-11 00:00 +0200
  Re: Upgrading with a low data cap David Wright <deblis@lionunicorn.co.uk> - 2018-10-08 03:10 +0200
    Re: Upgrading with a low data cap Tixy <tixy@yxit.co.uk> - 2018-10-08 08:00 +0200
      Re: Upgrading with a low data cap David Wright <deblis@lionunicorn.co.uk> - 2018-10-08 17:30 +0200
        Re: Upgrading with a low data cap Tixy <tixy@yxit.co.uk> - 2018-10-10 11:20 +0200
    Re: Upgrading with a low data cap Richard Owlett <rowlett@cloud85.net> - 2018-10-08 13:50 +0200
  Re: Upgrading with a low data cap David Christensen <dpchrist@holgerdanske.com> - 2018-10-08 05:40 +0200
  Re: Upgrading with a low data cap Curt <curty@free.fr> - 2018-10-08 10:10 +0200
    Re: Upgrading with a low data cap David Wright <deblis@lionunicorn.co.uk> - 2018-10-08 17:10 +0200

csiph-web