[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Script/command to build Install-CD from existing System?

On Sat, 23 Aug 2008 01:00:51 +0200
Michelle Konzack <linux4michelle@tamay-dogan.net> wrote:

> Hello *,
> I have a nice idea and need for it.  ;-)
> Since I am Debian GNU/Linux Consultant and have MANY Debian
> instalations at customers I have written a script, which catch the
> names of installed packages using
>     PKGLIST=`ssh -l ${SSHLOGIN} ${SSHHOST} "if
> [ -d /var/lib/dpkg/info ] ; then for PKG
> in /var/lib/dpkg/info/*.list ; do echo \"\$(basename
> \${PKG} .list)\" ; done ; else exit 127 ; fi"`

Erm, can you just

dpkg-query -W --showformat='${Package}\n'


That's when I use to see what packages are installed on a given system,
but perhaps I'm wrong and it pulls in non-purged packages too (I almost
always purge).


And that's my crabbing done for the day.  Got it out of the way early, 
now I have the rest of the afternoon to sniff fragrant tea-roses or 
strangle cute bunnies or something.   -- Michael Devore
GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C      http://gnupg.org
The C Shore: http://www.wightman.ca/~cshore

Attachment: signature.asc
Description: PGP signature

Reply to: