Aptitude Package Dependencies


Table of Contents

getting a list of manually installed package 
getting a list of manually installed package 
getting a list of manually installed package 
getting a list of manually installed package 
aptitude vs. debfoster 
aptitude vs. debfoster 
aptitude vs. debfoster 
aptitude vs. debfoster 
aptitude doesn't suck, actually 
prevent aptitude from reinstalling? 
prevent aptitude from reinstalling? 
prevent aptitude from reinstalling? 

getting a list of manually installed package 

Newsgroups:  gmane.linux.debian.user
Date:        Thu, 19 Oct 2006 17:15:44 +0100
>I re-read the aptitude reference [1], but I haven't found a way to get
>the list of just the package I have installed manually, intentionally.
>I have played with command such as these :
>
>aptitude search '!~M~i'

Strange, because that works just fine for me :-) But I've made sure that my markings in aptitude are correct:

http://therning.org/magnus/archives/132
>which give me the package that are installed (~i) and that were not
>automatically installed (!~M) but it gives me all the package that are
>installed by default on an etch + the one I want.

Have you been mixing use of apt-get and aptitude? Anything installed outside of aptitude is assumed to be explicitly installed (i.e. not marked auto).

Magnus Therning

getting a list of manually installed package 

> the list of just the package I have installed manually, intentionally.

I use this command to get a list of all the packages that are manually installed:

aptitude -F "%p" search \!~M~i~T

That includes essential packages, and doesn't include versions.

Owen Heisler

getting a list of manually installed package 

> > aptitude -F "%p" search \!~M~i~T
> >
> > That includes essential packages, and doesn't include versions.
>
> Did you manually installed the essential packages?

When Debian is first installed, all the installed packages are marked as manually installed in aptitude, so that was already done.

Owen Heisler

getting a list of manually installed package 

> >I've made sure
> >that my markings in aptitude are correct:
> >
> > http://therning.org/magnus/archives/132[]
>
> # aptitude markauto '~i'
>
> aptitude wants to remove the majority of the packages:
>
> After unpacking 427MB will be freed.
>
> How do you change the marking without uninstalling them?
  1. If you have configured aptitude to automatically install recommended packages then you have to run:

    aptitude unmarkauto '~M!~R~i'

    This will remove the "auto" mark from all packages that are not listed as a dependency of any other installed package.

  2. If your aptitude only installs dependencies automatically then this has to be:

    aptitude unmarkauto '~M!(~R~i|~Rrecommends:~i)'

    This will remove the "auto" mark from all packages that are not listed as a dependency or a recommendation of any other installed package.

Your system should be more or less OK after that. However, there might still be a few packages which you have to "unmarkauto" manually.

Florian Kulzer