Re: How safely to stop using backports repo?
On 2009-05-28, JeffD <jeff.dickison@gmail.com> wrote:
> Not automatic, but here is a quick script that might help you along:
>
> #!/bin/sh
>
> for pkg in `dpkg -l | awk '{print $2}'|sort` ; do
>
> if apt-cache policy $pkg | grep "www.backports.org" > /dev/null ; then
> echo $pkg " appears to be from www.backports.org"
> fi
>
> done
I don't think that can work, unless you make it something like:
apt-cache policy $pkg | grep -A 1 -E '^ \*\*\*' | grep "www.backports.org"
to make sure www.backports.org actually qualifies the *installed*
version ?
Cheers,
--Seb
Reply to: