On Thu, Mar 13, 2003 at 10:35:08AM -0500, Robert L. Harris wrote:
> I finally got a second hard drive so I can put Linux on my wife's
> machine. She'd like her X setup Identicle to mine. I've installed a
> base Woody system, current kernel, etc. Now I need to get all the same
> KDE packages on her machine. Other than "dpkg -l | grep kde > file,
> copy the file to her machine and apt-get install < file" is there a
> "better debian way" to do this?
If you were to use "dpkg -l", you would have to reformat the file before
it could be used. This isn't totally reliable as some non-KDE packages
start with the letter 'k', but some KDE packages start with 'k' instead
of "kde".
On your machine:
dpkg --get-selections | grep ^k | awk '{ if ($2 == "install") print $1 }' > file
Edit file and remove non-KDE packages like kernel-images
On her machine:
apt-get install `cat file`
If you were to use your "apt-get install < file", the contents of the
file would be stdin instead of being on the command line.
--
Seneca
seneca-cunningham@rogers.com
Attachment:
pgpyIVk3kx_0N.pgp
Description: PGP signature