Some background information:
As you may know, in a Debian package, there may be alternative dependencies, written in the CONTROL file as Depends: apache2|something-else
, for example. How does apt
select which dependencies to choose, and how can I override this so I can minimize download size?
I'm on a slow connection on some locations and need it to use the smallest total download size. How can I force it to do so?
Edit: I'm not asking about skipping recommends.
Edit 2: I am not asking about skipping dependencies. I am trying to get all dependencies, just in the smallest total size, especially noting and deeply traversing package1|package2
choices.
Edit 3: A grep
or otherwise shell script is acceptable.
Unfortunately, since the current answers do not really answer the question, they can't really get the bounty. It's still out there for someone willing to write a bash script!
Edit 4: Although the bounty has been awarded to a good answer which I encourage you to upvote, I am still seeking a more concrete answer. If it also elegantly handles virtual packages provided by one or more packages, then I'll possibly give another after-the-fact bounty to award that answer.
wordpress
, which involvesapache2|httpd
. Also note thathttpd
is a virtual package. I'll also give you the bounty. I won't accept just yet, though. – nanofarad Oct 23 '12 at 10:34apt-get showpkg
gives a full listing of dependencies (though I can't decipher how it deals with things involving alternatives (likeapache2|http
). The most useful part of this is the Reverse Provides section, which is the only way I can find to resolve virtual packages reliably. – Darael Feb 27 '13 at 20:31