On Fri, Nov 06, 2009 at 11:40:06AM -0700, Paul E Condon wrote: > On 20091104_075158, Paul E Condon wrote: > > On 20091103_114547, Boyd Stephen Smith Jr. wrote: > > > On Tuesday 03 November 2009 10:38:41 Johannes Wiedersich wrote: > > > > Andrew Sackville-West wrote: > > > > > On Sun, Nov 01, 2009 at 07:08:00PM -0500, Andrew Reid wrote: > > > > >> For the sysems I back up at work, we do the dpkg --get-selections > > > > >> thing, but I've never kept a copy of the boot sector -- that's an > > > > >> excellent idea. > > > > > > > > I guess the 'state of the art' way of recording a list of installed > > > > packages, nowadays is > > > > > > > > # aptitude -F "%p" search '~i!~M' > package-list > > > > > > > > You can then just install like > > > > > > > > # aptitude install $(cat pacage-list) > > > > > > > > dpkg --get-selections does not distinguish between packages installed > > > > manually or automatically, so that information is lost on the reinstall. > > > > The search pattern just looks for packages that were installed > > > > manually. The install will automatically install all dependencies. > > > > > > However, because of OR dependencies (i.e. using the '|' character), it might > ... snip ... > > > > packages", and some combination of dpkg --set-selections, aptitude markauto, > > > and aptitude install should be able to restore them. > > > > My suggestion is: > > > > # aptitude -F "%p %M" search '~i' |tr -s ' '|sed 's/ A$/+M/' > package-list > > > > followed by (without change except for fixing the missing "k" ;-) > > > > # aptitude install $(cat package-list) > > [snip] > Conclusion: I'm happy with this way of preparing a file that automates > the reconstruction of a whole host system. I'll be using it whether or > not my nits can be dealt with in some general way. can you please provide the steps you need for this I have aptitude -F "%p %M" search '~i' |tr -s ' '|sed 's/ A$/+M/' >> /var/backups/package-list but what about the package config information ??? how do I save that -- "See, free nations are peaceful nations. Free nations don't attack each other. Free nations don't develop weapons of mass destruction. " - George W. Bush 10/03/2003 Milwaukee, WI
Attachment:
signature.asc
Description: Digital signature