Hi-ho folks.. I've got a minor boggle for the apt-get and scripting kings out there...
I look after a bunch of debian boxes one way and another, and I back them up be taring the rsync'ing a bunch of config and data stuff, and taking a package list using: dpkg --get-selections > a_file.txt Does anyone know of a simple way to take the --get-selections list and stuff it into apt-get automagically? I'm sure I could sed and awk my way to this, but I'm not a sed or awk expert. I've done it manually a couple of times, but I want to be able to do something a bit cleverer, as it takes a while to manually trawl trough the list. (Feel free to laugh and point if this is a standard function of apt-get or dpkg, I googled and man paged for a while and might have missed it!) Cheers, Me.
