Muchas veces quiero instalar algún programa y antes de buscarlo en slackbuilds.org, slacky.eu, pkgs.org o cualquier otro repositorio, lo busco en la categoría "Actualizadores" para ver si existe algún updater para ese programa.
Pero ya hay un montón de updaters y es un coñazo estar buscando entre las distintas categorías, así que he creado un simple buscador de updaters desde el que puedes buscarlos y ejecutarlos.


De momento pongo el código, si alguien quiere hacer el módulo que lo haga, si no ya lo haré yo en estos días.
#!/bin/bash
VERSION="0.1"
TITULO="Buscador de updaters $VERSION - By geminis_demon"
TERM="linux"
UPDATERS_DIR="/opt/wifislax-updaters"
THEME="/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc"
WIDTH="500"
BUSCAR=$(
yad --center \
--width "$WIDTH" \
--gtkrc "$THEME" \
--title "$TITULO" \
--window-icon "/usr/share/icons/oxygen/48x48/actions/edit-find.png" \
--image "/usr/share/icons/oxygen/128x128/actions/edit-find.png" \
--button "Buscar:0" \
--button "gtk-close:2" \
--entry --editable
)
[ $? -ne 0 ] && exit
RESULTADOS=$(
find "$UPDATERS_DIR" -type f -name "*$BUSCAR*_updater"|while read LINE; do
PROGRAMA="$(echo "$LINE"|rev|cut -d'/' -f1|rev|cut -d'_' -f1)"
CATEGORIA="$(echo "$LINE"|rev|cut -d'/' -f2|rev)"
RUTA="$LINE"
echo "$PROGRAMA $CATEGORIA $RUTA"
done|sort -k2
)
[ ! "$RESULTADOS" ] && \
yad --center \
--fixed \
--text-align center \
--width "$WIDTH" \
--gtkrc "$THEME" \
--title "$TITULO" \
--window-icon "/usr/share/icons/oxygen/48x48/actions/edit-find.png" \
--image "/usr/share/icons/oxygen/128x128/actions/edit-find.png" \
--button "gtk-ok:0" \
--text "\n\n\n\nNo se ha encontrado ninguna coincidencia" \
&& exit
EJECUTAR=$(
yad --center \
--fixed \
--width "$WIDTH" \
--gtkrc "$THEME" \
--title "$TITULO" \
--window-icon "/usr/share/icons/oxygen/48x48/actions/edit-find.png" \
--image "/usr/share/icons/oxygen/128x128/actions/edit-find.png" \
--button "Ejecutar:0" \
--button "gtk-close:2" \
--text "" \
--list --multiple \
--column "Programa" \
--column "Categoría" \
--column "Ruta" \
--hide-column 3 \
$RESULTADOS
)
[ $? -ne 0 ] && exit
xterm -e "$(echo "$EJECUTAR"|cut -d'|' -f3)"