On Tue, Oct 31, 2006 at 02:48:54PM +0100, garibaldi was heard to say:
> I'm a german debian user working on a wiki page concerning aptitude
> (
http://wiki.debianforum.de/SoftwareVerw ... deVsAptGet). As far
> as I understand, aptitude uses flags to remember which package is
> manually installed(mi), and which is automaticly installed(ai) for
> solving dependency issues. This is a fine way to get rid of unused
> stuff, if a program is no longer needed. But the problem is, if you
> install packages via apt-get, aptitude may wants to deinstall them in
> it's next call. So may someone has installed the meta package "kde"
> whith apt-get, tries to install another package with aptitude and the
> program wants to deinstall the komplete kde environment.
That shouldn't happen -- aptitude detects when you've installed
packages with another program and assumes that those packages are
manually installed. The one exception is if you were previously going
to remove the package with aptitude, then removed them and reinstalled
them with another program. (I think the sarge version may have been
buggy here, though)
> Is there a solution to avoid this problem without tagging all prior
> installed packages as "mi"? Where does aptitude log it's understanding
> of what is mi or ai? I`ve searched the web for this information, but
> haven't found any details concerning this problem.
The information is in /var/lib/aptitude/pkgstates. However, the
way to do what you want is to either (a) only use aptitude; (b) mark
packages you've installed with apt-get as manual installations
(shouldn't be necessary unless your aptitude is buggy); or (c) use a
version of aptitude and apt-get that cooperate (not available in Debian,
although I heard that Ubuntu has patched their aptitude and
apt-get).
Daniel