Submitted scripts and programs
Forum rules
Your own work only.
-
machinebacon
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
-
Contact:
Unread post
by machinebacon » Wed Apr 15, 2015 1:36 pm
Because it's easier this way. Note: you need debian experimental repos enabled and your sources updated (with apt update or apt-get update)...
Code: Select all
#!/bin/bash
. /usr/share/doc/dialog/examples/setup-vars
. /usr/share/doc/dialog/examples/setup-tempfile
cat /var/lib/apt/lists/*exp*_Packages | grep "Package:" | awk -F ' ' '{ print $2 }' | sort > ~/.pkglist
ar=()
while read n s ; do
ar+=($n "$s" "\n")
done < ~/.pkglist
dialog --clear --backtitle "Install experimental packages" --checklist "Select experimental packages to install" 26 45 30 "${ar[@]}" 2> $tempfile
retval=$?
case $retval in
$DIALOG_CANCEL)
rm ~/.pkglist &>/dev/null
reset
clear
exit 0;;
esac
sudo apt-get -t experimental -y install `cat $tempfile`
rm ~/.pkglist &>/dev/null
-
Attachments
-
..gnutella..
-
rhowaldt
- Dog
- Posts: 4565
- Joined: Wed Oct 17, 2012 9:01 am
-
Contact:
Unread post
by rhowaldt » Wed Apr 15, 2015 9:35 pm
that looks great jules :)
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.