Weblog entry #52 for Utumno
#52
Which repository?
Posted by Utumno on Fri 27 Feb 2009 at 16:58
I'd like to kick out all multimedia packages which came from debian-multimedia.org and replace them with versions from Debian proper.
How can I figure out the list of all packages that have been installed from a given repository without manually going over all 1400 of them?
How can I figure out the list of all packages that have been installed from a given repository without manually going over all 1400 of them?
Comments on this Entry
Posted by Utumno (118.160.xx.xx) on Fri 27 Feb 2009 at 17:20
[ Send Message | View Utumno's Scratchpad | View Weblogs ]
[ Send Message | View Utumno's Scratchpad | View Weblogs ]
I managed to identify all debian-multimedia packages with help of the following script
but that's only a hack taking advantage of the fact that all such packages can be identified by
The original question still stands, though...
#!/bin/sh
dpkg --get-selections > selections
while read line
do
PACKAGE=`echo $line | sed -n "s/\(.*\)\ .*/\1/p"`
MARILLAT=`apt-cache show $PACKAGE | grep marillat | wc -l`
if [ $marillat -gt 0 ] ; then
echo $PACKAGE >> marillat-list
fi
done < selections
rm -f selections
but that's only a hack taking advantage of the fact that all such packages can be identified by
apt-cache show package | grep marillat
The original question still stands, though...
[ Parent | Reply to this comment ]
Posted by Anonymous (217.216.xx.xx) on Fri 27 Feb 2009 at 18:37
In synaptic you can identify packages by origin.
[ Parent | Reply to this comment ]
Check this: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504460
I have been using this script for a long time to check what packages come from experimental in my desktop machine.
I have been using this script for a long time to check what packages come from experimental in my desktop machine.
[ Parent | Reply to this comment ]
Posted by Utumno (118.160.xx.xx) on Fri 27 Feb 2009 at 20:05
[ Send Message | View Utumno's Scratchpad | View Weblogs ]
[ Send Message | View Utumno's Scratchpad | View Weblogs ]
works great, thanks!
[ Parent | Reply to this comment ]