I just upgraded my system from Lenny to Squeeze following the steps posted here. I followed all the steps using apt-get (in the upgrade from Etch to Lenny i used aptitude as suggested) and the upgrade went fine.
In the daily routine I use aptitude to maintain the system up to date and I really like the automatic handling of unused packages, so if I install package A that depends on B when I remove A, B is removed too keeping my system clean.
My question is the following: do apt-get and aptitude share the automatic handling of packages? I don't think so, because I found a lot of packages not marked as Auto in aptitude after the upgrade via apt-get.
Am I right? How can I fix this in automated way if the answer is yes?
(Adding an answer so the information is here, too)
aptitude
keeps some state over and above the underlyingapt-get
system. This results in information set in one that the other doesn't know about. Years ago when I still usedaptitude
, I found myself doing update checks in both because I was getting confusing results. Usingaptitude
exclusively would hide this problem, but as soon as you something else, it becomes apparatnt.Solution: either use only
aptitude
or never useaptitude
.The release notes say you should use apt-get to upgrade, not aptitude.
http://www.debian.org/releases/squeeze/i386/release-notes/ch-upgrading.en.html#upgradingpackages+
You can have automatic handling of unused packages by using
apt-get --auto-remove remove/purge
.If that's tedious to type, just make an alias. Mine is
rr
andrrp
, respectively.