New User? Register here - Existing Users: Username: Password: [Advanced Login]

 

 

Current Poll

Your preferred Interactive shell?









( 1368 votes ~ 15 comments )

 

Weblog entry #52 for Utumno

Which repository?
Posted by Utumno on Fri 27 Feb 2009 at 16:58
Tags: none.
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?

 

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 ]
I managed to identify all debian-multimedia packages with help of the following script
#!/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 ]

Posted by JulienV (90.40.xx.xx) on Fri 27 Feb 2009 at 19:22
[ Send Message | View Weblogs ]
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.

[ 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 ]
works great, thanks!

[ Parent | Reply to this comment ]

 

 

Flattr