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

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



Hello Daniel,

Am 2008-11-21 03:45:48, schrieb Daniel Dickinson:
> >     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'

Ah, thanks for this idea...

> 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).

Me too, to prevent unexpected surprises if I reinstall something later.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: