Welcome to your wiki!
This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
The wiki uses Markdown syntax.
It's really very simple. Just make the script executable and run it.
This is the whole code:
#!/bin/bash run_kons() { konsole --hold \ -p TerminalColumns=160 \ -p TerminalRows=40 \ -e /bin/bash -c "$*;echo $'\n\e[0;34m'Done" } choice=$(kdialog --title "Updates" \ --separate-output \ --checklist "Update options:" \ 1 "List upgradable packages" off \ 2 "Update database only" off \ 3 "Update database and install packages" off \ 4 "Search for packages" off \ 5 "Search for packages - with details" off \ 6 "Exit" off) case $choice in 1) run_kons "apt list --upgradable" ;; 2) run_kons "sudo apt update" ;; 3) run_kons "sudo apt update && sudo apt full-upgrade";; 4) term=$(kdialog --title "Package search" --inputbox "Package to search for: (partial names allowed - may return long lists)");konsole --hold -e /bin/bash -c "apt-cache search $term;echo $'\n'Use sudo apt install [package name] to install it.;$SHELL";; 5) term=$(kdialog --title "Package search" --inputbox "Package to search for: (wildcards (*) allowed - retutns a lot of info)");konsole --hold -e /bin/bash -c "apt-cache policy $term;echo $'\n'Use sudo apt install [package name] to install it.;$SHELL";; esac
Log in to post a comment.
It's really very simple.
Just make the script executable and run it.
This is the whole code:
Last edit: Don B. Cilly 2020-05-06