Skip to content

Instantly share code, notes, and snippets.

@lazypwny751
Created June 8, 2025 22:13
Show Gist options
  • Select an option

  • Save lazypwny751/8dcc26a4b29657929b4f3eeae18ea819 to your computer and use it in GitHub Desktop.

Select an option

Save lazypwny751/8dcc26a4b29657929b4f3eeae18ea819 to your computer and use it in GitHub Desktop.
install .deb files easily with simple tui.
#!/bin/bash
mapfile -t arr < <(ls *.deb)
PS3="Select a deb file (type exit or quit for close the script):> "
select fdeb in "${arr[@]}" ; do
case "${REPLY,,}" in
"e"|"q"|"exit"|"quit")
exit 0
;;
*)
if [[ -z "${fdeb}" ]] ; then
echo "null option!"
else
apt install "$(realpath ${fdeb})"
fi
;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment