#!/mod/bin/jimsh source /mod/var/mongoose/lib/setup require pkg.class puts { } set avail [pkg avail] foreach name [lsort [array names avail]] { set pkg [pkg load $name $avail($name)] if {![$pkg is installed]} { puts "" } elseif {[$pkg is upgradable]} { puts "" } else { puts "" } puts " " if {![$pkg is installed]} { set type Install } elseif {[$pkg is upgradable]} { set type Upgrade } else { set type Remove } puts "" puts "" } puts "
Package Installed Avail Description
$name [$pkg get installed] [$pkg get latest] [$pkg get descr]
"