Solved PKG Info vs Queries

Hi guys,

the command pkg info only show information about packages already installed, how I can get the same information of package that it is not installed?

I read the manual for pkg-query but I simply didn't get what is written, examples in use don't match my scope, and any combination I am trying to guess is always wrong.

Can actually pkg-query get the same information as pkg info?
Can be "tweaked" pkg info to show off info about a package regardless if this installed or not?

Thanks,
F.
 
pkg-info(8) gets the information from the local database, in a way it's just some predefined queries. You can use pkg-query(8) to directly query the database too. But this also acts on the database of installed packages. If you want to query the remote repository database you use pkg-rquery(8).

Can actually pkg-query get the same information as pkg info?
Yes. But the result won't be nicely formatted. So pkg-query(8) is mostly intended to use in scripts as it just gives you the information you want.
 
Thanks SirDice, so far I was able to compose this command which gives enough info:

pkg rquery '%n: %c\n\n%e\n\nSize: %sh' nscde

Code:
nscde: Modern CDE clone based on fvwm

NsCDE is a retro but powerful UNIX desktop environment which resembles CDE look
(and partially feel) but with a more powerful and flexible framework beneath-
the-surface, more suited for 21st century unix-like and Linux systems and user
requirements than original CDE.

NsCDE can be considered as a heavyweight FVWM theme on steroids, but combined
with a couple other free software components and custom FVWM applications and a
lot of configuration, NsCDE can be considered a lightweight hybrid desktop
environment.

WWW: https://github.com/NsCDE/NsCDE

Size: 53.9MiB

Now I am trying to figure out how to show the dependencies... ?
 
Hmm... Same problem here.

But, for sake of simplicity, I dig a little bit on those manpages... And found:

pkg search -f <pkg-name>

(Packages database is on my side... Client side. ;-)
 
Back
Top