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 '/^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. > > Oh! I didn't know about that option. Neat! I learned a new feature.
the reading of /bin/lesspipe was helpful. > > But that doesn't work on debian.tar.gz files. That works on .deb > files. A different problem! :-) > > $ dpkg --info emacs23-common-non-dfsg_23.4+1-1_all.deb | grep ^Section: > Section: non-free/editors > > Or if it is already installed: > > $ dpkg --status emacs23-common-non-dfsg | grep ^Section: > Section: non-free/editors My goal is to get the component from files uploaded with `dput'. Thanks, Jerome > > Bob -- Jerome BENOIT jgmbenoit-at+rezozer*dot_net -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51864ee1.5090...@rezozer.net