[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Find installed contrib and non-free packages



Martin Bartenberger wrote:
> Hi,
>
> just a few days ago I've read at
> http://www.debian.org/security/faq.en.html#contrib that contrib and
> non-free packages are not supported by the Debian security team.
>
> Now I want to find out which contrib and non-free packages are
> installed on my servers. Is there any special command or script for
> this or do I have to write one?
>
> Looking forward to your ideas and Greetings from Vienna,
>
> Martin
>
>
Hi Martin,

I think the following command resolves your problem:

for pkg in `dpkg -l | grep ii | awk '{print $2}'` ; do if [ `apt-cache
show $pkg | grep 'contrib\|non-free' | wc -l` -ne 0 ]; then echo $pkg;
fi; done

Filip.


Reply to: