Re: list all packages that are installed
On Sat, 12 Jan 2002 14:09:59 -0800
"Karsten M. Self" <kmself@ix.netcom.com> wrote:
> on Fri, Jan 11, 2002 at 07:58:47PM -0600, Ron Johnson (ron.l.johnson@cox.net) wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Friday 11 January 2002 05:58 pm, Stephen Rueger wrote:
> > > On Fri, Jan 11, 2002 at 05:41:18PM -0600, Ron Johnson wrote:
> > [snip]
> > > > A problem with this is that even if COLUMNS is a huge value (from
> > > > a very large xterm window, for example), 'dpkg -l > foo' will
> > > > still create a 78 column output.
> > >
> > > 'COLUMNS=200 dpkg -l > foo'
> >
> > radical. thanks.
> >
> > Doing that without a semicolon would *never* have occurred to me.
>
> It's a shell trick.
>
> You can set an environment variable for the _current process_ by
> specifying it first on the command line. I usually exploit it to get a
> date/time for some other location, e.g.:
>
> $ TZ=Australia/Sydney date
> $ TZ=UK/London date
This doesn't work on my system:
TZ=Australia/Sydney date
TZ=Australia/Sydney: Command not found.
Reply to: