Re: dpkg and dselect
>
> Hi,
>
> I'm having some trouble using dpkg for removing packages:
>
> ~# dpkg -l
>
> ii elm-me+ 2.4pl25ME+39-1 MIME & PGP-aware interactive mail reader
>
> which means the package is installed, but:
>
> ~# dpkg --remove elm-me+_2.4pl25ME+39-1
> dpkg - warning: ignoring request to remove elm-me+_2.4pl25ME+39-1 which
> isn't installed.
You are trying too hard :) The package is elm-me+, the version is
2.4pl25ME+39-1. You don't need to tell dpkg which version to uninstall,
there can only be one version installed, and dpkg knows which one that
is, so just type:
dpkg --remove elm-me+
This should do the trick if there are no dependencies that block you.
> I even tried:
> # dpkg --force --remove elm-me+_2.4pl25ME+39-1
> # dpkg --force-remove-reinstreq elm-me+_2.4pl25ME+39-1
Be _very_ careful with this last option, especially don't use it if you
are uncertain about what you are doing, and if you are certain, don't
do it anyway, think again.
> I'd like to do this through dpkg, but eventually had to do it with
> dselect... what's wrong here?
>
> Also, does dselect use the same db than dpkg (it should if dselect is dpkg's
> gui)?
Dselect and dpkg and apt all use the same db. It is very nice of you to
call dselect a gui :)
HTH,
Eric
--
E.L. Meijer (tgakem@chem.tue.nl) | tel. office +31 40 2472189
Eindhoven Univ. of Technology | tel. lab. +31 40 2475032
Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax +31 40 2455054
Reply to: