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

Re: Debian package component belonging



Hi Bob,

On 04/05/13 05:04, Bob Proulx wrote:
> Hi Jerome,
> 
> Jerome BENOIT wrote:
>> I was looking for a ready to use tool to extract the components:
>> I guess I have to write my own stuff to do so.
> 
> How about:
> 
>   $ tar --to-stdout -xf emacs23-non-dfsg_23.4+1-1.debian.tar.gz debian/control | grep ^Section:
>   Section: non-free/editors
>   Section: non-free/editors
> 
> Which can be automated to extract just the field from the packages.
> 
>   $ tar xf emacs23-non-dfsg_23.4+1-1.debian.tar.gz --to-stdout debian/control | sed -n '/^Section:/{s/.* //;s@/.*@@p;q}'
>   non-free

You are faster than me. On the other hand, time delay was in your favour.

Let me continue, for the record:

For debballs:

$ dpkg --info | grep ^Section

and so forth.


Thanks again,
Jerome



> 
> Bob


Reply to: