List of packages in your Puppy

Quirky 1.0 has just been announced on Distrowatch. I told Ladislav that the list of packages in Quirky is to be found in /root/.packages/woof-installed-packages (in Quirky), however that confused Ladislav as he saw 'glade' listed but it isn't there.

The reason is, that the file lists packages in the 'devx' SFS also.

I have written a little script that extracts package name and version of packages that are in the live-CD, and prints them to stdout. This script is 'pkgsinlivecd' and I have placed it in the 'support' directory in Woof.

Here it is:
#!/bin/sh

#Barry Kauler, May 2010
#this script removes the package names that are in the "devx" SFS file, not in
#the live-CD. On stdout is printed the package name and version on each line,
#of files in the live-CD.
#this script works for all puppies built with Woof.

. /root/.packages/DISTRO_PKGS_SPECS

DEVXONLY="`echo "$PKGS_SPECS_TABLE" | grep 'exe>dev' | grep '^yes' | cut -f 2 -d '|'`"

# cat /root/.packages/woof-installed-packages |
cp -f /root/.packages/woof-installed-packages /tmp/woof-installed-packages
for ONEDEVX in $DEVXONLY
do
dPATTERN="|${ONEDEVX}|"
grep -v "$dPATTERN" /tmp/woof-installed-packages > /tmp/woof-installed-packages2
mv -f /tmp/woof-installed-packages2 /tmp/woof-installed-packages
done

grep -v -i '_dev' /tmp/woof-installed-packages > /tmp/woof-installed-packages2
mv -f /tmp/woof-installed-packages2 /tmp/woof-installed-packages
#grep -v '^gcc' /tmp/woof-installed-packages > /tmp/woof-installed-packages2
#mv -f /tmp/woof-installed-packages2 /tmp/woof-installed-packages
sort -u /tmp/woof-installed-packages > /tmp/woof-installed-packages2
mv -f /tmp/woof-installed-packages2 /tmp/woof-installed-packages

LIVECDPKGS="`cat /tmp/woof-installed-packages | cut -f 2,3 -d '|'`"
echo "$LIVECDPKGS"



Posted on 5 May 2010, 20:35


Comments:

Posted on 6 May 2010, 2:20 by Q5sys
was happy to see
While I normally take a dim view of DistroWatch due to the way he responds to requests for announcements (he claims they all have a 90 day waiting period, however ubuntu based versions seem to excluded from this requirement); I was thrilled to see quirky as an announcement.
Glad to see that your work is getting some recognition. Keep up the good work, I am looking forward to everything you are able to accomplish with quirky.


Posted on 6 May 2010, 8:11 by BarryK
Waiting period
I know about the 90 day wait. I placed Quirky on the waiting list in December 2009.