Hey ralul,
thanks for your feedback, good to know nvidia-driver version 331 (beta) is in good shape.
A little remark to aptitude search '~V331' : Your query doesn't simply list packages of version 331, but it lists packages of any version which also have a version of 331 in any of your repos. In other words: The packages on the list exist in version 331, but they don't need to be installed in that version. On my system i didn't install nvidia 331 but 319.60 and your command still lists the packages:
$ aptitude search '~V331'|grep -e'^i'|sed -e's/^....//' -e's/ .*$//'
libgl1-nvidia-glx
libxnvctrl0
nvidia-alternative
nvidia-driver
nvidia-kernel-dkms
nvidia-vdpau-driver
xserver-xorg-video-nvidia
Luckily aptitude can "Narrow" (~S) with a filter (~i) the results of a search pattern (~V319) to installed packages like this. I also reduced its output to just packagename with a formatstring so no grep and sed is needed:
$ aptitude search '~S~i~V319' -F '%p'
libgl1-nvidia-glx
libxnvctrl0
nvidia-alternative
nvidia-driver
nvidia-kernel-dkms
nvidia-vdpau-driver
xserver-xorg-video-nvidia
Selecting the packages only by versionnumbers does not allways give the desired result. Here i filtered by description, suppressed the Nouveau-driver by its versionnumber and sort in order of ascending version.
$ aptitude search '~dnvidia~S~i!~V1.0.9' -F '%v%p' | sort -V
How will the result look like? Hmm, try it by yourself!
Have fun with aptitude!
greetings
musca