debian_linux_update_all

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Date: Mon, 16 Oct 2000 18:41:04 -0700
To: J C Lawrence <claw@kanga.nu>
Cc: svlug@svlug.org
Subject: Re: [svlug] Debian rebuild
From: Chris Waters <xtifr@dsp.net>

On Mon, Oct 16, 2000 at 05:17:25PM -0700, J C Lawrence wrote:
> 
> Under Debian, is there a reasonably simple way to suck down new
> copies of all packages installed on the system, and to re-install
> them?  The obvious way is to start with something based on:
> 
>   dpkg --get-selections | cut -d\t -f1
> 
> to get a list of the installed packages.  Problem is apt-get doesn't
> seem to have a facility to retrieve a named package if it is the
> same as the currently installed copy.

According to the man page:

       --reinstall
              Re-Install  packages that are already installed and
              at the newest version.

Haven't tried it, but it looks promising...

===


From: kmself@ix.netcom.com
Date: Mon, 16 Oct 2000 18:55:58 -0700
To: svlug@svlug.org
Subject: Re: [svlug] Debian rebuild


--hxkXGo8AKqTJ+9QI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 16, 2000 at 05:17:25PM -0700, J C Lawrence (claw@kanga.nu) wrot=
e:
>=20
> Under Debian, is there a reasonably simple way to suck down new
> copies of all packages installed on the system, and to re-install
> them?  The obvious way is to start with something based on:
>=20
>   dpkg --get-selections | cut -d\t -f1
>=20
> to get a list of the installed packages.  Problem is apt-get doesn't
> seem to have a facility to retrieve a named package if it is the
> same as the currently installed copy.  Now I could hack the dpkg
> status file, but that seems a bit tacky...

    $ apt-get --reinstall ?

If that doesn't force the download, the following might:

    $ rm /var/cache/apt/archives/*.deb
    $ dpkg --get-selections | grep 'install' | cut -d\t -f1 |
        xargs apt-get --reinstall


===

Date: Mon, 16 Oct 2000 19:11:06 -0700
From: Aaron Lehmann <aaronl@vitelus.com>
To: Chris Waters <xtifr@dsp.net>
Cc: J C Lawrence <claw@kanga.nu>, svlug@svlug.org
Subject: Re: [svlug] Debian rebuild

On Mon, Oct 16, 2000 at 06:41:04PM -0700, Chris Waters wrote:
> On Mon, Oct 16, 2000 at 05:17:25PM -0700, J C Lawrence wrote:
> > 
> > Under Debian, is there a reasonably simple way to suck down new
> > copies of all packages installed on the system, and to re-install
> > them?  The obvious way is to start with something based on:
> > 
> >   dpkg --get-selections | cut -d\t -f1
> > 
> > to get a list of the installed packages.  Problem is apt-get doesn't
> > seem to have a facility to retrieve a named package if it is the
> > same as the currently installed copy.
> 
> According to the man page:
> 
>        --reinstall
>               Re-Install  packages that are already installed and
>               at the newest version.
> 
> Haven't tried it, but it looks promising...

I'm trying to do this and apt is not happy about the local packages on
my system. For example:

[root@endquote:/home/aaronl]# dpkg --get-selections | awk '{print $1}' | xargs apt-get --reinstall install
Reading Package Lists... Done
Building Dependency Tree... Done
Note, selecting debconf instead of debconf-tiny
Sorry, re-installation of dpkg is not possible, it cannot be downloaded
Sorry, re-installation of gdk-imlib-dev is not possible, it cannot be downloaded
Sorry, re-installation of gdk-imlib1 is not possible, it cannot be downloaded
Sorry, re-installation of gogo is not possible, it cannot be downloaded


Hmmm.... any good ideas on how to automatically stip out packages
that are not available via my sources.list? When I egrep -v these
four package names, many, many more similar errors appear.

For now I'm going to egrep all 20 or so of them out, but it would be
nice to have an automated solution.


===

Date: Mon, 16 Oct 2000 19:18:45 -0700
From: Aaron Lehmann <aaronl@vitelus.com>
To: Chris Waters <xtifr@dsp.net>
Cc: J C Lawrence <claw@kanga.nu>, svlug@svlug.org
Subject: Re: [svlug] Debian rebuild

On Mon, Oct 16, 2000 at 07:11:06PM -0700, Aaron Lehmann wrote:
> On Mon, Oct 16, 2000 at 06:41:04PM -0700, Chris Waters wrote:
> [root@endquote:/home/aaronl]# dpkg --get-selections | awk '{print $1}' | xargs apt-get --reinstall install
> Reading Package Lists... Done
> Building Dependency Tree... Done
> Note, selecting debconf instead of debconf-tiny
> Sorry, re-installation of dpkg is not possible, it cannot be downloaded
> Sorry, re-installation of gdk-imlib-dev is not possible, it cannot be downloaded
> Sorry, re-installation of gdk-imlib1 is not possible, it cannot be downloaded
> Sorry, re-installation of gogo is not possible, it cannot be downloaded

Silly me, it was ignoring all those errors but an error involving
perlmagick and dependencies was confusing it. This seems to work:

dpkg --get-selections | awk '$2 == "install" { print $1}' \ 
 | egrep -v '(perlmagick)' | xargs apt-get --reinstall install -f

...

26 packages upgraded, 0 newly installed, 355 reinstalled, 0 to remove and 1 not upgraded.
1 packages not fully installed or removed.
Need to get 223MB/223MB of archives. After unpacking 95.2kB will be used.
Do you want to continue? [Y/n]

woohoo.

Now I think I'll give this some time to run.

===

the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu