If you look at your extended_states file, there's likely to be a few
packages which have Auto-Installed: 0. These are manually installed, right?
That's what apt-mark showmanual thinks anyway. Why are these there? If the
intent is to only list packages which are automatically installed in
extended_states, then you should remove that field and just make it a list
of automatically installed packages. Don't see why there should be two
different ways to indicate if a package is manually installed.

However, I don't think you should convert extended_states into a simple
list of packages. There's a widespread impression that extended_states
shows manually installed packages, as in* *things that the user really
wanted to install (and not dependences like foo-data or system installed;
exceptions like these should be in the man page and are completely
counterintuitive). Right now apt-mark showmanual shows probably hundreds of
things I didn't take the time to install. I'm not the only one who notices
that: see the comments to accepted answer on the page I referred to
previously <http://askubuntu.com/a/2393/52209> (on AskUbuntu actually)
What's the reason for that?

I'm getting the impression that the manually installed metadata is actually
designed more for package maintenance and maintainers than for users who
want to get a good idea of what they've done in the past. However, there's
tremendous interest from users in getting a simple list of what they've
installed. It's a reasonable request. Right now there's no simple way to do
it. People are asking on the Q&A sites and getting responses which show
horrendous and clunky scripts that don't even work or require you to hunt
down the manifest of the distro's packages. It actually seems like the
current set-up leaves an elegant opening for this: if something has the
Auto-Installed: 0 in extended_states, it could be indicated as truly
auto-installed, while the ones which aren't even listed in extended_states
as auto-installed could be pseudo-manually installed (system installed plus
things like foo-data).

See 
1<http://unix.stackexchange.com/questions/3595/ubuntu-list-explicitly-installed-packages>,
2<http://askubuntu.com/questions/195782/how-to-view-a-list-of-packages-that-were-manually-installed-without-their-depend>,
3<http://askubuntu.com/questions/365/is-it-possible-to-tell-what-packages-ive-installed-that-arent-in-the-vanilla-i>,
4 <http://How to uninstall all but the default Ubuntu packages?>,
5<http://askubuntu.com/questions/229102/what-is-aptitudes-extended-state-information>.
Going back a little further, there's a 2008
thread<http://ubuntuforums.org/showthread.php?t=947865>on
ubuntuforums.com.

I suppose you could switch this to a wish, although I still think there are
bugs in the documentation and how this is precisely working.



On Sun, Oct 27, 2013 at 12:58 AM, David Kalnischkies <
kalnischkies+deb...@gmail.com> wrote:

> Hi,
>
> On Sun, Oct 27, 2013 at 1:14 AM, cluelesscoder <cluelessco...@gmail.com>
> wrote:
> > However only  5 packages also didn't seem right, and when I installed a
> couple packages manually, they didn't get added to /var/lib/extended_states
> at all (as either automatic or manual). The packages were pudb and
> reportbug. There are other places online where people have commented on the
> same thing which I can add later if you want, but they don't provide any
> insight into why.
>
> Please note that packages listed in extended_states are NOT manually
> installed, the packages listed are automatically installed.
> Every package not in that list is manually installed.
>
> Note also that some packages which normally would be auto-installed
> are marked otherwise because they or their 'depender' are in special
> sections.
>
> So its normal that if you do:
> $ apt-get install foo
> NEW: foo
>
> nothing changes in regards of the extended states.
>
> On the other hand, if it is:
> $ apt-get install foo
> NEW: foo foo-data
>
> foo-data will appear in extended states as automatical installed.
>
>
> Last hint:
> If foo is automatical installed and you do:
> $ apt-get install foo
> at the end of the operation foo will be marked as manually installed.
>
>
> Hopefully the logic is a bit more clear now. In that light, can you
> rephrase your bugreport to detail which packages you installed exactly?
>
>
> Best regards
>
> David Kalnischkies
>

Reply via email to