Re: dpkg -l format

1999-10-06 Thread Bjoern Brill
On Tue, 5 Oct 1999, Colin Walters wrote: > > The output format of dpkg -l is terrible. Many package names exceed > the measly 16 characters allotted. Many, many times when trying to Yes. > what I really want to do is dpkg -l '*netscape*' | xargs dpkg --purge. I recommend dpkg --get-selectio

Re: dpkg -l format

1999-10-05 Thread Nick Moffitt
Quoting Antti-Juhani Kaijanaho: > On Tue, Oct 05, 1999 at 05:45:34AM -0400, Raul Miller wrote: > > grep-status -P netscape | awk '/^Package: /{print $2}' | xargs dpkg > > --purge > > which is better written as > > grep-status -P -sPackage -n netscape > > since this does not use an extra awk

Re: dpkg -l format

1999-10-05 Thread Antti-Juhani Kaijanaho
On Tue, Oct 05, 1999 at 05:45:34AM -0400, Raul Miller wrote: > Note that this last is equivalent to: > > grep-status -P netscape | awk '/^Package: /{print $2}' | xargs dpkg > --purge which is better written as grep-status -P -sPackage -n netscape since this does not use an extra awk proc

Re: dpkg -l format

1999-10-05 Thread Joost Kooij
Hi, On Tue, 5 Oct 1999, Colin Walters wrote: > The output format of dpkg -l is terrible. Many package names exceed > the measly 16 characters allotted. Many, many times when trying to > remove packages that have long strings of dependencies, I have > to grep /var/lib/dpkg/status, and remove thi

Re: dpkg -l format

1999-10-05 Thread Raul Miller
On Tue, Oct 05, 1999 at 10:58:06AM +0300, Antti-Juhani Kaijanaho wrote: > Or simpler: > > grep-status -P netscape | grep-dctrl -FStatus -sPackage -n \ > 'install ok installed' | xargs dpkg --purge Or simpler, and closer to the original intent: dpkg --get-selections | grep 'netscape' |

Re: dpkg -l format

1999-10-05 Thread Antti-Juhani Kaijanaho
On Tue, Oct 05, 1999 at 10:31:35AM +0300, Antti-Juhani Kaijanaho wrote: > Simple: > > grep-status -Pe '.*netscape.*' | grep-dctrl -FStatus -sPackage -n \ > 'install ok installed' | xargs dpkg --purge Or simpler: grep-status -P netscape | grep-dctrl -FStatus -sPackage -n \ 'install ok installed

Re: dpkg -l format

1999-10-05 Thread Antti-Juhani Kaijanaho
On Tue, Oct 05, 1999 at 12:44:10AM -0400, Colin Walters wrote: > I'm not sure if this has been discussed extensively before on > debian-devel, but a quick search of the mailing list archives didn't > turn up anything, so here goes: There are open bugs against dpkg on this, IIRC. > I have > to gre

dpkg -l format

1999-10-05 Thread Colin Walters
I'm not sure if this has been discussed extensively before on debian-devel, but a quick search of the mailing list archives didn't turn up anything, so here goes: The output format of dpkg -l is terrible. Many package names exceed the measly 16 characters allotted. Many, many times when trying t