Seeking a way to query pamac to get the actual package names of optional dependencies. pamac info does not (necessarily) return this, correct?
e.g. pamac info vim
Name : vim
Version : 9.1.1734-1
Description : Vi Improved, a highly configurable, improved version of the vi text editor
URL : https://www.vim.org
Licenses : custom:vim
Repository : extra
Installed Size : 5.2 MB
Groups : --
Depends On : vim-runtime=9.1.1734-1 gpm acl glibc libgcrypt zlib
Optional Dependencies : python: Python language support [Installed]
ruby: Ruby language support
lua: Lua language support [Installed]
perl: Perl language support [Installed]
tcl: Tcl language support [Installed]
(I am assuming ‘ruby language support’ != ruby). Cannot find a ‘ruby language support’ pkg.
Context:
Am trying to script provisioning in ansible, and looking for an unattended way to install optional dependencies. A separate pamac install will work, but I need the actual package name.
What @Mirdarthos said - before the colon is the package name, after the colon is the package description.
python, ruby, lua, perl, tcl in this example.
See also the Arch website where the repo packages and the AUR packages are described:
You find 25 dependencies for this package, the above five of them being optional,
and many more dependencies needed to be able to build the package,
but not needed to be present after the build (make dependencies).
Perhaps easier to parse/postprocess than pamac info output is pacman output
pacman -S --print-format %O vim
will give you: python: Python language support ruby: Ruby language support lua: Lua language support perl: Perl language support tcl: Tcl language support
It’s from the
TRANSACTION OPTIONS
section in
man pacman
or you parse the local database for the package:
/var/lib/pacman/local/vim-9.1.1734-1/desc
and get
...
%OPTDEPENDS%
python: Python language support
ruby: Ruby language support
lua: Lua language support
perl: Perl language support
tcl: Tcl language support
...
Thanks. Yes, this is why I assumed the pamac info vim output was not giving the actual package name. I assumed vim ‘language support’ (e.g. I assume linting, syntax highlighting, etc) would not require installation of the full programming language itself. But perhaps this is the case.
Yes it seems my assumption is not actually holding. If vim language support is actually the full ruby programming language install, then that would answer. The package names listed in info are the full package names.