Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: jls on October 24, 2014, 03:56:51 PM

Title: where is the list of the packages included in an sce?
Post by: jls on October 24, 2014, 03:56:51 PM
Hi
where is the list of the packages included in an sce?
Title: Re: where is the list of the packages included in an sce?
Post by: Jason W on October 24, 2014, 04:59:01 PM
For a loaded file.sce, it is /usr/local/sce/file/file.md5sum, which also contains the the md5 data for the packages that made up the sce.  I don't want to make a duplicate file to list them without the md5.  Below is a quick and easy script to list the packages.  We could call it scepkglist and add it to base, could be useful.

Code: [Select]
#!/bin/sh

if [ ! -d /usr/local/sce/"$1" ] || [ -z "$1" ]; then
echo ""$1" is not a mounted sce."
echo "Below is a list of mounted sces."
/bb/ls -1 /tmp/tcloop/ | select "Select SCE to view package list." "-"
read SCE < /tmp/select.ans
[ "$SCE" == "q" ] && exit 1
cat /usr/local/sce/"$SCE"/"$SCE".md5sum | cut -f1 -d: > /tmp/"$SCE".sce.pkglist
echo "View /tmp/"$SCE".sce.pkglist to view list of packages for "$SCE".sce."
else
cat /usr/local/sce/"$1"/"$1".md5sum | cut -f1 -d: > /tmp/"$1".sce.pkglist
echo "View /tmp/"$1".sce.pkglist to view list of packages for "$1".sce."
fi