I understand that in the Depends: section of the deb control files, a package may specify alternative dependencies separated by |
symbol to satisfy a single dependency.
My question is, how does apt-get
decides which one to install when there are alternatives?
Is there a way to manually alter this selection using something similar to apt_preferences
?
For example, if a package depends on java and in the Depends section we have openjdk-6-jre | sun-java6-jre
, how can I force apt-get to install openjdk-6-jre
provided that the system does not have either packages installed?
apt-cache depends
pipe character is the prefix denoting that the package on that line and the one on the next line are alternatives. – jarno Mar 28 '19 at 15:41