Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just installed Maverick and was surprised that almost all packages are marked as manually installed (linux-headers and wireless-crda aren't). Doesn't that defeat the purpose of the differentiation between automatically and manually installed packages?

share|improve this question

2 Answers 2

up vote 9 down vote accepted

Seems my Google powers were weakened: this is a known bug (concentrate on comments from Colin Watson) and it's hanging around for some time with no fix in sight:

Quoting Colin Watson:
[...] Leaving all packages as manually installed is unsightly but the consequences of this bug are generally limited to not managing to be clever enough to remove packages that aren't needed any more. A flaw in the reverse direction would be much worse, because it could cause packages to be removed when they are still needed. Given that there does not seem to be a clearly correct fix available, it's better to air [sic] on the side of caution. [...]
share|improve this answer
    
air? err, surely. –  TRiG Nov 9 '10 at 12:57
1  
Yes, but if I'd correct it, it wouldn't be a quote anymore. :P –  htorque Nov 9 '10 at 13:08
    
What I wonder is : since this "manually installed" section is obviously irrelevant (unusable), why don't they just hide it ? No need to display it if you can do nothing with it... which seems to be the case in my point of view. Then if they get a fix someday, they can show it again. This has been in Ubuntu since Jaunty or Karmic if I remember well... –  Little Jawa Nov 10 '10 at 7:17
1  
Though when he fixes it in the next comment, I think you can adjust the quote. :) –  Roger Pate Nov 11 '10 at 17:59
    
@Little: It can be useful for packages you install later, just not anything included when initially installing. –  Roger Pate Nov 11 '10 at 18:02

Okay, now this is the first thing I do right after installation. I mark every package as automatically installed, and they stay as dependencies of ubuntu-desktop:

apt-mark showmanual | xargs sudo apt-mark auto
sudo apt-mark unmarkauto ubuntu-desktop 

Ideally, that would be enough. But as per Colin Watson, the world isn't so perfect, and we need some more polishing. Iterate:

apt-get autoremove --simulate
# ...
# output of what's to be autoremoved
sudo apt-mark unmarkauto <package>

where <package> for me ends up at least as each of ubuntu-standard, ubuntu-minimal, ubuntu-restricted-addons. Also some language packs.

Worth noting is also aptitude, which with its TUI can aid the process.

Having done this, my system's package manager reports look so much more pleasant and comprehensible:

$ apt-mark showmanual
aptitude
dkms
git
subversion
ubuntu-desktop
ubuntu-minimal
ubuntu-restricted-addons
ubuntu-standard
vim
zsh

Voila!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.