[Pkg-zsh-devel] Bug#883158: zsh-common: no completion for "apt install /path/to/filename.deb"

Boyuan Yang 073plan at gmail.com
Thu Nov 30 09:24:41 UTC 2017


Package: zsh-common
Version: 5.4.2-2
Severity: normal

We know that newer apt provides apt(1) that can install local deb packages and
automatically resolve its dependencies. This feature supercedes "dpkg -i
package.deb".

However, zsh does not provide completion to installing local deb packages now.
As new apt is gradually getting around we should really add such completion
feature.

FYI, the difference between installing a package from software source and
installing a local package depends on whether the user is typing a path
(relative or absolute). If it's a path, apt will search for the deb package
according to the path; if it's a package name, apt will download and install it
from remote software archive. That should help will the completion
implementation.

P.S. Bash can already complete "apt install ./*.deb" correctly.

Thanks,
Boyuan Yang



-- Package-specific info:

Packages which provide vendor completions:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version            Architecture       Description
+++-===========================-==================-==================-============================================================
ii  curl                        7.56.1-1           amd64              command line tool for transferring data with URL syntax
ii  git-buildpackage            0.9.4              all                Suite to help with Debian packages in Git repositories
ii  mpv                         0.27.0-2+b2        amd64              video player based on MPlayer/mplayer2
ii  pulseaudio                  11.1-3             amd64              PulseAudio sound server
ii  reprepro                    5.1.1-1            amd64              Debian package repository producer
ii  systemd                     235-3              amd64              system and service manager
ii  udev                        235-3              amd64              /dev/ and hotplug management daemon
ii  vlc-bin                     2.2.8-1            amd64              binaries from VLC
ii  ydcv                        0.0~git20160323-1  all                Youdao Dictionary Console Version
ii  youtube-dl                  2017.11.06-1       all                downloader of videos from YouTube and other sites

dpkg-query: no path found matching pattern /usr/share/zsh/vendor-functions/


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

zsh-common depends on no packages.

Versions of packages zsh-common recommends:
ii  zsh  5.4.2-2

Versions of packages zsh-common suggests:
pn  zsh-doc  <none>

-- no debconf information



More information about the Pkg-zsh-devel mailing list