From: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: _apt-get and _deb_packages
Date: 03 Sep 1999 22:30:24 +0200 [thread overview]
Message-ID: <87u2pbu49r.fsf@zxmjz18.extern.uni-tuebingen.de> (raw)
In-Reply-To: Tanaka Akira's message of "03 Sep 1999 06:14:53 +0900"
Tanaka Akira <akr@jaist.ac.jp> 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
next prev parent reply other threads:[~1999-09-03 22:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-02 21:14 Tanaka Akira
1999-09-03 20:30 ` Falk Hueffner [this message]
1999-09-03 23:17 ` Tanaka Akira
1999-09-04 14:49 ` Clint Adams
1999-09-05 15:08 ` Tanaka Akira
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87u2pbu49r.fsf@zxmjz18.extern.uni-tuebingen.de \
--to=falk.hueffner@student.uni-tuebingen.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).