I am studying for LPIC exam and one of the tasks in the lab is to find details about package with dpkg -p
, concretely about vim with dpkg -p vim
. In the solution, the command produces information about the package, but my output is:
root@home:~# dpkg -p vim
dpkg-query: package 'vim' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Vim is installed, I am using it offen and it can also be found on system
root@home:~# type vim
vim is hashed (/usr/bin/vim)
root@home:~# which vim
/usr/bin/vim
I thought the dpkg -p
is somehow broken, but it works with other packages (I have tried several and they all worked fine):
root@home:~# dpkg -p eject
Package: eject
Priority: important
Section: utils
Installed-Size: 160
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
...
My system (VPS) info is
Ubuntu 18.04.5 LTS
Linux 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Why can I not reproduce the solution from the course? Thank you!
vim
packages (in addition ofvim
itself). Tryapt-cache showpkg vim
to get a list of packages that can providevim
(eg: vim-nox, vim-gtk3, vim-gtk, vim-athena) – A.B Jun 06 '21 at 18:19dselect update
, but withapt install
orapt dist-upgrade
. Also because I never usedselect
for anything else any more so I can just type!dsel
to take advantage of bash's history. – cas Jun 07 '21 at 04:15