I have a system which is a mishmash of testing and unstable and some from experimental.
How can I get a list of which packages I've installed from experimental?
Answering my own question.
I came up with this solution:
aptitude -t experimental search -F '%p %?V %?v %?t' --disable-columns .|\
grep -v none| \
grep experimental| \
awk '{if( $2 == $3) print $1}'
The aptitude
line gets me a list with "package name(%p)", "version if upgrade to experimental(%?V)", "installed version(%?v)" and "archives(%?t)".
Then filter away packages which are not installed.
And keep only packages which are available in experimental.
If installed and upgradable version are the same we have a winner.
There might be an easy way to do that, but if there isn't this might work to get you close:
dpkg --list
apt-get update
--compare-versions
to dpkg to see if you have is newer than what is returned from apt.I hope for your sake there is a better way ;-)