#/bin/sh
for i in `dpkg -l | egrep ^.i | awk '{print $2}'`
do
apt-cache show $i | grep Tag: | grep special::obsolete > /dev/null 2>&1
if [ $? == 0 ]; then
echo $i
fi
done
後は apt-get remove なり aptitude purge なり
#/bin/sh
for i in `dpkg -l | egrep ^.i | awk '{print $2}'`
do
apt-cache show $i | grep Tag: | grep special::obsolete > /dev/null 2>&1
if [ $? == 0 ]; then
echo $i
fi
done
後は apt-get remove なり aptitude purge なり