Saturday, December 8, 2007

Mixing "testing" and "unstable"

I have several (14) packages installed from "unstable" (aka "sid"), and several (3) locally installed packages. The other packages (2192) come from the "testing" repository.

Setting up a mixed system is rather easy - I followed the instructions at the APT HOWTO, and you may also want to read the nice HOWTO and comments over at the Debian User Forums.

I use the following oneliner to list the packages from "unstable":
apt-show-versions | cut -d ' ' -f 1 | awk 'BEGIN{FS="/"}{if($2=="unstable")print$1}' | sort
(replace "unstable" with "testing" to list the packages from "testing").

And here's how to list the locally installed packages:
apt-show-versions | cut -d ' ' -f 1 | awk 'BEGIN{FS="/"}{if(NF==1)print$1}' | sort
Append "|wc -l" to these commands in order to count the packages instead of just list them.

No comments:

Post a Comment