Date: Fri, 22 Mar 2024 00:10:53 -0700 From: list_freebsd@bluerosetech.com To: freebsd-questions@freebsd.org Subject: How do I get just the pkg version in pkg-search results? Message-ID: <0b06e637-6b26-4d01-21f5-9d9419c3c64e@bluerosetech.com>
next in thread | raw e-mail | index | archive | help
I can do a search like this: # pkg search -qe -S name sqlite3 sqlite3-3.45.1,1 But all I need is the version string. If the version field was exposed like other fields, I could do this: # pkg search -qe -S name -L version sqlite3 3.45.1,1 But that's not (currently) an option. Is it guaranteed that a version string never contains '-'? That is, is the last '-' in the pkg-name string always going to be the delimiter between the name-flavor substring, and the version substring?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0b06e637-6b26-4d01-21f5-9d9419c3c64e>