Stupid questions I have always wanted to ask: Part Two

OK I install a package and now what? I have to run a search for newest files?

Why does pkg install output not show you what was installed and where? pkg-descr is only so useful.

Why not an output report. What file and where was it placed.. Am I missing some command flag?
 
Sure after the fact.

A simple screen output would show you the executables installed and the docs.
Granted most packages contain a single executable it can still be a guessing game if the package name is not the executable name.
 
And some packages contain hundreds of files.

Imagine I'm installing (or upgrading) 30 packages at once. Do I want to see every file they installed? Probably not, instead I want to see the progress: Now doing package 13, now doing 14, ...

Maybe with some -v option, this would make sense.
 
Am I missing some command flag?
Sure after the fact.
pkg-rquery(8) doesn't offer the possibility to query for files in a package; I imagine that information is not stored in the local copy db of the remote repository. The best option, before actually installing, seems to be the longer road via first fetching the package, then querying the package file. Install the package, either using the normal route using pkg-install(8) or using pkg-add(8) using the the downloaded package files. For example using lsof:
Code:
[1-0] # pkg fetch -o . lsof
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
All repositories are up to date.
The following packages will be fetched:

New packages to be FETCHED:
        lsof: 4.99.5,8 (117 KiB: 100.00% of the 117 KiB to download)

Number of packages to be fetched: 1

117 KiB to be downloaded.

Proceed with fetching packages? [y/N]: y
Fetching lsof-4.99.5,8.pkg: 100%  117 KiB 119.7kB/s    00:01
[2-0] # pkg query --file ./All/lsof-4.99.5,8.pkg '%Fp'
/usr/local/share/licenses/lsof-4.99.5,8/catalog.mk
/usr/local/share/licenses/lsof-4.99.5,8/LICENSE
/usr/local/share/licenses/lsof-4.99.5,8/lsof
/usr/local/share/man/man8/lsof.8.gz
/usr/local/sbin/lsof
/usr/local/share/lsof/00MANIFEST
/usr/local/share/lsof/00README
/usr/local/share/lsof/big_brother.pl
/usr/local/share/lsof/count_pf.pl
/usr/local/share/lsof/identd.pl
/usr/local/share/lsof/idrlogin.pl
/usr/local/share/lsof/list_NULf.pl
/usr/local/share/lsof/list_fields.awk
/usr/local/share/lsof/list_fields.pl
/usr/local/share/lsof/shared.pl
/usr/local/share/lsof/sort_res.pl
/usr/local/share/lsof/watch_a_file.pl
/usr/local/share/lsof/xusers.awk
[3-0] #
 
"Hey Siri, why am I installing this package?" "Because you want to run GIMP" "Ok, but what do I do after installing this package named gimp? "have you tried typing in gimp and hitting return?"

I guess I'm not sure why the question is being asked. Typically one installs a package satisfy a need, the need is a known prerequisite, so after installing why not simply try "the need"?
 
Trying to figure out the binary for webkit2-gtk_60 was fun :p

I needed MiniBrowser but it isn't extracted to a bin folder:

Code:
/usr/local/libexec/webkitgtk-6.0/MiniBrowser

I usually look for stuff like pkg info -l 'webkit2-gtk_60' | grep 'bin', but there's no hint of minbrowser.
 
Back
Top