Deinstall package *INCLUDING* all dependencies

Felipe Figueiredo philsf at ufrj.br
Sat Jul 8 18:42:17 UTC 2006


On Saturday 08 July 2006 15:10, Alexander Skwar wrote:
> Stephen R Laniel schrieb:
> > On Sat, Jul 08, 2006 at 07:34:56PM +0200, Alexander Skwar wrote:
> >> And the "forgot" is the reason why I'm asking now :) I'd like to
> >> deinstall mplayer *including* all the depencies which were installed
> >> to meet those requirements.
> >
> > I've never really used aptitude, but I'm told that it keeps
> > track of which packages were only installed to satisfy the
> > dependencies of other packages; when you uninstall the
> > latter, it uninstalls the former.
>
> Yes, that's what I heard as well. But I also heard, that it
> doesn't work too well, if apt-get is used. And I do use apt-get
> and plan on continuing to do so, as it is pure CLI, while
> aptitude is a "TUI" (text user interface) program.

You can substitute apt-get by aptitude, with same syntax.

Try aptitude update

or upgrade, or install, dist-upgrade... you got it.

Inside the TUI, you can see wether a package was installed manually or not. It 
marks the package with a 'A' for that matter, so that such package is marked 
for removal when all packages depending on it are removed.

You can toggle this state with 'M' (on) and 'm' (off).

>
> > You could install deborphan, then dodfgh
> >
> > sudo apt-get remove $(deborphan)
> >
> > Repeat this until deborphan returns no packages.
>
> Nikhil also suggested to have a look at deborphan. I'll have
> a look at this program.

You do that. It's very nice. I used to manually toggle that 'A' for as many 
packages I could. What a disrespect with my own time. Good thing my thesis 
advisor doesn't know that (this post won't be archived, right?).





More information about the ubuntu-users mailing list