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

Re: apt



On Mon, Jul 04, 2005 at 07:15:20PM -0500, Ron Johnson wrote:
> On Tue, 2005-07-05 at 00:32 +0100, Adam Hardy wrote:

[snip]

> > I would like to backup my package apt configuration - that is, I would 
> > like to backup the files/databases where apt-get stores the info on 
> > which packages are installed.

[snip]

> That will probably be many, *many* GB of debs.  Why not just save
> config files, and do a fresh install after a crash.  Then restore
> the config files, and you're back to your old state.

Ron, he said he wanted to back up the "configuration", and you told him to
back up the config files instead.  :-)


Adam:

	dpkg --get-selections > myselections.txt

Restore with

	dpkg --set-selections < myselections.txt
	apt-get dselect-upgrade

I also back up the complete contents of /etc.  In fact, I just used that
very technique to set up a brand-new computer.  Only other thing I had to do
was fiddle with the X setup (due to hardware differences). 
-- 
Carl Fink                                         carl@fink.to
If you attempt to fix something that isn't broken, it will be.
	-Bruce Tognazzini



Reply to: