Re: Piped package list
On Wed, 11 Aug 2004 17:42:10 +0100, Thomas Adam wrote: >> I seem to recall seeing once that one of the package >> tools (dpkg, apt, or another, I don't remember) could >> save a package list that could later be piped as input >> to return a system to an identical list of packages >> with one command. Am I crazy, and if not, how is this >> done? > > One method of cloning debian installs is to take a current debian > machine that is setup with the packages you want. Run the command > "dpkg --get-selections > ~/selectionfile". Then, after the base > install on other machines use that file and do: "dpkg > --set-selections < ./selectionfile && apt-get dselect-upgrade". The dpkg --get-selections/--set-selections is a great way to save the energy that you've spent. Yet it is not enough. Go to the List-Archive http://lists.debian.org/debian-user/ and follow the recent thread of "Configuration DB", if you want to save more of your energy. Subject: Configuration DB Date:Sat, 07 Aug 2004 14:20:53 -0400 tong -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Piped package list
On Wed, 11 Aug 2004 17:58:36 +0100 Thomas Adam <[EMAIL PROTECTED]> wrote: > On Wed, Aug 11, 2004 at 11:50:07AM -0500, Jacob S. wrote: > > Please see my reply to this. > > > "dpkg --get-selections >& /file/to/output.txt" > > There is no need to shunt stderr as well, since if anything is > written to it (unlikely), it will taint the file. True. Just a (potentially bad) habit I've gotten into for piping output from GUI stuff into a text file. > > "cat /file/to/output.txt | dpkg --set-selections" > > > > "apt-get upgrade" > > No, you *must* do: apt-get dselect-upgrade. Yep, thanks for the correction. Looks like I should have done "man apt-get" in addition to recommending "man dpkg". :-) > > (man dpkg for more information.) Jacob -- GnuPG Key: 1024D/16377135 Random .signature #29: Do you remember when you only had to pay for Windows when *you* were the one that broke them? pgpyfgg1jlSgL.pgp Description: PGP signature
Re: Piped package list
On Wed, Aug 11, 2004 at 11:50:07AM -0500, Jacob S. wrote: Please see my reply to this. > "dpkg --get-selections >& /file/to/output.txt" There is no need to shunt stderr as well, since if anything is written to it (unlikely), it will taint the file. > "cat /file/to/output.txt | dpkg --set-selections" > > "apt-get upgrade" No, you *must* do: apt-get dselect-upgrade. > (man dpkg for more information.) Heh, yes, it *is* worth reading. -- Thomas Adam -- "Frankly, Mr. Shankly, since you ask. You are a flatulent pain in the arse." -- Morrissey. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Piped package list
On Wed, 11 Aug 2004 09:17:01 -0700 (PDT) Aaron Peters <[EMAIL PROTECTED]> wrote: > I seem to recall seeing once that one of the package > tools (dpkg, apt, or another, I don't remember) could > save a package list that could later be piped as input > to return a system to an identical list of packages > with one command. Am I crazy, and if not, how is this > done? No, not crazy at all. It's a very useful feature. "dpkg --get-selections >& /file/to/output.txt" "cat /file/to/output.txt | dpkg --set-selections" "apt-get upgrade" (man dpkg for more information.) HTH & HAND, Jacob -- GnuPG Key: 1024D/16377135 Random .signature #12: Linux: Because a PC is a terrible thing to waste. pgpo1dLVVSCp2.pgp Description: PGP signature
Re: Piped package list
On Wed, Aug 11, 2004 at 09:17:01AM -0700, Aaron Peters wrote: > I seem to recall seeing once that one of the package > tools (dpkg, apt, or another, I don't remember) could > save a package list that could later be piped as input > to return a system to an identical list of packages > with one command. Am I crazy, and if not, how is this > done? One method of cloning debian installs is to take a current debian machine that is setup with the packages you want. Run the command "dpkg --get-selections > ~/selectionfile". Then, after the base install on other machines use that file and do: "dpkg --set-selections < ./selectionfile && apt-get dselect-upgrade". -- Thomas Adam -- "Frankly, Mr. Shankly, since you ask. You are a flatulent pain in the arse." -- Morrissey. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Piped package list
I seem to recall seeing once that one of the package tools (dpkg, apt, or another, I don't remember) could save a package list that could later be piped as input to return a system to an identical list of packages with one command. Am I crazy, and if not, how is this done? TIA, Aaron __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]