Bash repo/install Help

Karl Auer kauer at biplane.com.au
Mon Mar 9 15:33:29 UTC 2020


On Mon, 2020-03-09 at 12:24 +0000, Grizzly via ubuntu-users wrote:
> 2) if wine is already installed, update the correct wine

I don't use wine, but this will get you installed packages that mention
"wine". You might be able to use some variant of it to decide what
you've got installed and what to upgrade. 

apt list --installed   \
     2> /dev/null    | \
     cut -d/ -f1     | \
     grep wine

Line 1: list all installed packages
Line 2: deep six an annoying warning
Line 3: keep just the package names
Line 4: keep only lines with "wine"

Regards, K.


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: 8D08 9CAA 649A AFEF E862 062A 2E97 42D4 A2A0 616D
Old fingerprint: A0CD 28F0 10BE FC21 C57C 67C1 19A6 83A4 9B0B 1D75






More information about the ubuntu-users mailing list