Hi, sorry, if ugly format, i lost your message, then this is reply from archive
> Uninstalled, but not purged, packages are shown. Try apt-get install
> jarwrapper; apt-get remove jarwrapper; dpkg --purge jarwrapper and
> compare the different output of dpkg -l.
I hope, that i understand now from where was my mistake coming:
LANG=C dpkg -l aspell-hi
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-========================-========================-========================
un aspell-hi <none> (no desc available)
First i think, that there is info about this package in status file, but i
was wrong, because there is only item for aspell package, which points to
the aspell-hi:
grep aspell-hi /var/lib/dpkg/status
Replaces: aspell-bin (<< 0.60.3-2), aspell-hi (<= 0.01-1), ...
^^^^^^^^ ^^^^^^^^^
This was my confusion and misunderstanding, thanks for pointing :-)
> Using dpkg-query also has the advantage that you can specify the
> output format:
> ...
> Note the return code of 1 when no packages are found.
This is only one, what i am using for my purpose, because i am redirecting
whole output to /dev/null in my script (now changed to dpkg-query):
if dpkg-query --load-avail -l $NAM_PACK >/dev/null 2>&1; then
...
But thanks for nice examples.
regards
--
s pozdravom
Slavko
http://slavino.sk
signature.asc
Description: PGP signature

