Hi Jim,
On Thu, Jan 07, 2021 at 08:12:52AM -0500, Jim Popovitch wrote:
> What is a script'able way to list a pkg version (or nothing if it is not
> installed)?
$ dpkg-query --showformat '${Version}\t${Status}\n' --show coreutils
8.23-4 install ok installed
$ dpkg-query --showformat
On Thu, Jan 07, 2021 at 08:12:52AM -0500, Jim Popovitch wrote:
> What is a script'able way to list a pkg version (or nothing if it is not
> installed)?
>
> +1 for POSIX compatibility.
unicorn:~$ dpkg-query --show --showformat '${Version}\n' bash
5.0-4
unicorn:~$ dpkg-query --show --showformat
Hello!
What is a script'able way to list a pkg version (or nothing if it is not
installed)?
+1 for POSIX compatibility.
tia,
-Jim P.
3 matches
Mail list logo