Re: backup vs package manager
On Tue, 4 Dec 2001, Karsten M. Self wrote:
> on Tue, Dec 04, 2001 at 11:33:39PM +0200, Juha Mäkinen (juham@koti.tpo.fi) wrote:
> >
> >
> > > > Especially given a partial backup, involving, f.ex. X.
> > > > If I upgrade X with apt-get or dselect, but things go
> > > > wrong and I restore my backup - how do I put package
> > > > mabager back on track ...?
> > > >
> > > > Or, do I backup just /home and leave all other stuff
> > > > in the Hand Of God and Package Manager ...?
> > >
> > > And before backup do something like
> > > dpkg --get-selections >/home/backup/packagelist
> > > (and maybe backup /etc too...?)
> > >
> >
> > The description of those options of dpkg is short of details.
> > So ... do those --get-selections and --set-selections indeed
> > serve to put the package-manager's database back the way it
> > ought to be ( given that I got the right selection
> > to start with ) ?
>
> Yes.
>
> dpkg --get-selections > file # save package settings.
> dpkg --set-selections < file # set package settings.
>
> Peace.
>
Thanks
Juha Mäkinen
<juha.makinen@koti.soon.fi>
Reply to: