used to fail if no package name was provided but now treats that as a wildcarding opportunity to show all packages.
source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+if [ -z "$*" ]; then
+ # no parameters, so we do a wildcard style of listing packages.
+ SEEK_PIECE=' cat '
+else
+ # we know the parameters are not empty, so we don't go with our
+ # wildcard approach for listing the package names.
+ SEEK_PIECE=' grep $* '
+fi
+
+ dpkg -la | eval $SEEK_PIECE
exit $?
fi
rpm_available="$(which rpm)"
if [ ! -z "$rpm_available" ]; then
#is that the right phrase for rpm? somewhat forgotten.
exit $?
fi
rpm_available="$(which rpm)"
if [ ! -z "$rpm_available" ]; then
#is that the right phrase for rpm? somewhat forgotten.
+ rpm -qa | eval $SEEK_PIECE
exit $?
fi
yum_available="$(which yum)"
if [ ! -z "$yum_available" ]; then
exit $?
fi
yum_available="$(which yum)"
if [ ! -z "$yum_available" ]; then
+ yum list | eval $SEEK_PIECE