On Sat, Nov 24, 2007 at 07:29:48PM -0500, Mark Neidorff wrote:
> I have installed etch using an older cpu/motherboard.  Now I've gotten a new 
> cpu/motherboard and my thinking is to re-install etch.  Is there a way to get 
> the list of packages that are installed on the etch system into a file? I 
> would then want to reinstall etch and havesomething (apt-get?) read that file 
> and install the packages so that I have the same setup as before?

There are various ways to do it, depending on what package management
program you normally use.  If you use apt-get (and therefore don't keep
track of automatically installed packages), you can just use 

# dpkg --get-selections > dpkg-sel.txt

and to install:

# dpkg --set-selections < dpkg-sel.txt

then apt-get.

However, if you use aptitude and were to use the dpkg, you would lose
the marking of Automatic or manually installed.

As part of my backup script, I run:

# aptitude search '~i!~M' > apt_inst.sel

I don't know how to tell aptitude to install from this list.  I'm on
dialup and I wouldn't want it to.  I install things in the order in
which I need them on a new system; generally in broad categories:  ppp,
pppconf; mc, lynx; mutt, exim4; vim; etc.

> 
> Why am I not just putting the new motherboard in and trying to boot up?  
> Becuase others have tried it and reported on the list that the system would 
> start to boot and then freeze.


Well, have your list of installed packages as part of your backup set.
Then just try it.  If it works, great.  If not, it could be that the
initrd needs rebuilding; try the install CD in rescue mode.  Otherwise,
reinstall and restore from backup.

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to