pacman 5.0.1 on Arch Linux and I'd like to get information about packages installed on my machine as well as packages in the remote repositories.
Information should include a description of the package, its size, and its build date.
vi as an example, to get information about its locally installed package use
pacman -Q --info vi
Name : vi Version : 1:070224-2 Description : The original ex/vi text editor Architecture : x86_64 URL : http://ex-vi.sourceforge.net/ Licenses : custom:ex Groups : base Provides : None Depends On : ncurses Optional Deps : s-nail: used by the preserve command for notification [installed] Required By : None Optional For : None Conflicts With : None Replaces : None Installed Size : 290.00 KiB Packager : Evangelos Foutras <email@example.com> Build Date : Sun 06 Sep 2015 09:34:15 PM CEST Install Date : Mon 03 Oct 2016 07:18:13 PM CEST Install Reason : Explicitly installed Install Script : No Validated By : Signature
Alternatively use the shorter
pacman -Qi vi
Getting information from the remote repository works similar:
pacman -Si vi
When you only know parts of the package's name, use the
pacman -Ss jdk