A full list of package and section name 

Newsgroups:  gmane.linux.debian.user
Date:        Sun, 16 Oct 2005 13:12:12 +0300
> Is there any way to list all the packages and their section names?
>
> I tried "dpkg-query -W --showformat '${Package} ${Section}\n'" but not all
> packages are listed. Please help. Thanks

How about aptitude —display-format "%p %s" search ~n.*

See aptitude reference manual for more information about Customizing how packages are displayed.

Simo Kauppi

A full list of package and section name 

> Now, how to redirect the output, with package description, to a file? ie.
> Of all the following that I tried, none of them worked as displayed.
>
> aptitude --display-format "%p %s %70d" search ~n.* > file
> COLUMNS=120 aptitude --display-format "%p %s %70d" search ~n.* > file

You could try -w option, which should set the width of the display for aptitude instead of the width of the terminal.

aptitude -w 120 --display-format "%p %s %70d" search ~n.* > file

Simo Kauppi