[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: reinstall



On Mon, Feb 04, 2002 at 11:15:59PM -0800, Osamu Aoki wrote:
> On Tue, Feb 05, 2002 at 04:28:46PM +1030, Tom Cook wrote:
> > Is there some way to get apt to re-download and re-install ALL
> > packages installed on the system?  I am not looking for an upgrade,
> > but a reinstall.  Should I just write some script to get a list of
> > installed packages and xargs them to 'apt-get --reinstall install' or
> > is there some way to specify all of the installed packages
> > automagically?
> 
>  # dpkg --get-selections "*" >/myselections
>  # cd /etc ; tar cvzf ../etc.tar.gz *
>  # cd /
>  ... move myselections and etc.tar.gz into safe place.
> 
> Reinstall. (Just minimum)
>  # dselect update
>  # dpkg --get-selections < /whereever/myselections

Better to use:
   # dpkg --set-selections < /whereever/myselections
maybe?

>  # dselect install
>  # apt-getupdate; apt-get install mc
> 
> ... Use MC to browse old etc in etc.tar.gz and configure new system :)
> 
> > For the curious, the reason I ask is that I installed debian on a
> > machine with an erratic nic that was handily corrupting stuff as it
> > went, and a number of things are a touch unreliable (occasional
> > segfaults).  So I want to reinstall it all.
> Good luck.
> 
> My web page below has many hints handling broken upgrades.
> -- 
> ~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ 
> +  Osamu Aoki <debian@aokiconsulting.com>, GnuPG-key: 1024D/D5DE453D  +
> +  My debian quick-reference, http://qref.sourceforge.net/quick/      +
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

-- 
Paul E Condon 
pecondon@quiknet.com



Reply to: