I want to find packages whose names contains characters in a specified search string. Something similar to
apt-cache search, but I also want the output to show whether the package is installed on my system by marking with a flag
ii (installed) or
un (not installed).
$ dpkg -l *skype* ||/ Name Version Description +++-==================-==================-================================================ un skype <none> (no description available) un skype-common <none> (no description available) un skype-mid <none> (no description available)
So Ubuntu finds skype in its software center and it passes the flag
un, indicating its not installed on my system.
Well, actually it is installed on my system:
$ apt-cache policy skype skype:i386: Installed: 188.8.131.52-1 Candidate: 184.108.40.206-1
So why was the
un flag associated with skype in the above example?
In fact, whenever I use the dpkg command, it thinks the package is not installed:
dpkg -L skype Package `skype' is not installed.