Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _apt-get and _deb_packages
- X-seq: zsh-workers 7640
- From: Falk Hueffner <falk.hueffner@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: _apt-get and _deb_packages
- Date: 03 Sep 1999 22:30:24 +0200
- In-reply-to: Tanaka Akira's message of "03 Sep 1999 06:14:53 +0900"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <rsq3dwxuib6.fsf@xxxxxxxxxxxxxxxxx>
Tanaka Akira <akr@xxxxxxxxxxx> writes:
> This is completion functions for apt-get of Debian.
Thanks, this is a good idea.
It would be nice if after 'install' only uninstalled packages would be
completed, and after 'remove' and 'purge' only installed.
A way to get installed packages is
dpkg --get-selections | awk '/[^e]install$/ { print $1 }'
Another problem is that when using the "apt" tool, dpkg might not know
about some available packages. Perhaps a better way of getting
available packages is
apt-cache dumpavail | awk '/^Package:/ { print $2 }'
Perhaps there is an easy way of making a set difference to get a list
of uninstalled packages.
Unfortunately, I haven't yet looked enough at the new completion
system to help you further...
Falk
Messages sorted by:
Reverse Date,
Date,
Thread,
Author