Use testing version of Debian as my primary working environment. But some softwares are available only in sid version, and bugs are fixed in sid firstly. So switching between testing and sid is routine. A simple script as follow is used to simplify/accelerate the operation.
echo "Usage: $prog <testing|sid>"
if grep sid /etc/apt/sources.list > /dev/null; then
if [ $# -ne 1 ]; then
if [ $tdist != "sid" -a $tdist != "testing" ]; then
if [ "$tdist" != "$cdist" ]; then
cp /etc/apt/sources.list.$tdist /etc/apt/sources.list
mv /var/lib/apt/lists /var/lib/apt/lists.$cdist
if [ -d /var/lib/apt/lists.$tdist ]; then
mv /var/lib/apt/lists.$tdist /var/lib/apt/lists