Re: Debian package component belonging

2013-05-05 Thread Jerome BENOIT
Hello List, On 05/05/13 07:07, Bob Proulx wrote: > Jerome BENOIT wrote: >> Bob Proulx wrote: >>> Jerome BENOIT wrote: Is there an easy way to get it from the .debian.tar.(gz|bz2|xz) ? >>> >>> $ tar xf emacs23-non-dfsg_23.4+1-1.debian.tar.gz --to-stdout >>> debian/control | sed -n '/^Sectio

Re: Debian package component belonging

2013-05-04 Thread Bob Proulx
Jerome BENOIT wrote: > Bob Proulx wrote: > > Jerome BENOIT wrote: > > > Is there an easy way to get it from the .debian.tar.(gz|bz2|xz) ? > > > > $ 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

Re: Debian package component belonging

2013-05-04 Thread Jerome BENOIT
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/c

Re: Debian package component belonging

2013-05-03 Thread Cláudio E. Elicker
On Sat, 04 May 2013 01:41:45 +0200 Jerome BENOIT wrote: > Hello List, > > given a package name, how can we know to which Debian component (man, > contrib, non-free) it belongs ? > > Thanks in advance, > Jerome > > aptitude -F 'Package: %p - Section: %s' search '^package_name$' -- EMACS i

Re: Debian package component belonging

2013-05-03 Thread Bob Proulx
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: n

Re: Debian package component belonging

2013-05-03 Thread Jerome BENOIT
Hi Again, On 04/05/13 03:18, Bob Proulx wrote: > Jerome BENOIT wrote: >> Is there an easy way to get it from the .debian.tar.(gz|bz2|xz) ? > > Look at the debian/control file. I got this part. I was looking for a ready to use tool to extract the components: I guess I have to write my own stuff t

Re: Debian package component belonging

2013-05-03 Thread Bob Proulx
Jerome BENOIT wrote: > Is there an easy way to get it from the .debian.tar.(gz|bz2|xz) ? Look at the debian/control file. Look for the Section: field. What does it say? The "main/" is implied and so not included. But any section that is other than main will be stated there. If it doesn't say

Re: Debian package component belonging

2013-05-03 Thread Jerome BENOIT
Hi Bob ! On 04/05/13 01:49, Bob Proulx wrote: > Jerome BENOIT wrote: >> given a package name, how can we know to which Debian component >> (man, contrib, non-free) it belongs ? > > 1. Use apt-cache to show the package header and look to see what >section it it in. > > $ apt-cache show emac

Re: Debian package component belonging

2013-05-03 Thread Bob Proulx
Jerome BENOIT wrote: > given a package name, how can we know to which Debian component > (man, contrib, non-free) it belongs ? 1. Use apt-cache to show the package header and look to see what section it it in. $ apt-cache show emacs23-common-non-dfsg | grep Section Section: non-free/editor