On Tue, Oct 18, 2005 at 12:10:03PM -0400, T wrote: > On Sun, 16 Oct 2005 13:12:12 +0300, Simo Kauppi wrote: > > >> Is there any way to list all the packages and their section names? > > > > How about aptitude --display-format "%p %s" search ~n.* > > Thanks. > > Now, how to redirect the output, with package description, to a file? ie. > > aptitude --display-format "%p %s %70d" search ~n.* > [...] > cursel misc simple language to provide text application interfaces > curves devel colorful console interface for CVS version control > cutils devel C source code utilities > cutter net disconnect routed IP connections > cuyo games Tetris-like game with very impressive effects > cvm admin Credential Validation Modules > cvm-dev libdevel Credential Validation Modules (development files, documentation) > cvm-mysql admin Credential Validation Modules (mysql) > [...] > > 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 > > please help. thanks > > > tong 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 -- :r ~/.signature
Attachment:
signature.asc
Description: Digital signature