Package: apt Version: 0.5.4 The order of packages in argument list is relevant, how apt builds its dependency tree. Here is an example:
mpiat0201:~# apt-get -u install nvidia-glx nvidia-glx-dev nvidia-kernel-2.4.20.9.p4 Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: nvidia-kernel-2.4.20.9.athlon The following NEW packages will be installed: nvidia-glx nvidia-glx-dev nvidia-kernel-2.4.20.9.athlon nvidia-kernel-2.4.20.9.p4 0 packages upgraded, 4 newly installed, 0 to remove and 1 not upgraded. Need to get 0B/3464kB of archives. After unpacking 10.7MB will be used. Do you want to continue? [Y/n] n Abort. Because nvidia-glx depends on a meta-package (nvidia-kernel), which is provided by nvidia-kernel-2.4.20.9.athlon and nvidia-kernel-2.4.20.9.p4 it chooses to install the unwanted .athlon package, because the requested .p4 package is at the end of the argument list. mpiat0201:~# apt-get -u install nvidia-kernel-2.4.20.9.p4 nvidia-glx nvidia-glx-dev Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: nvidia-glx nvidia-glx-dev nvidia-kernel-2.4.20.9.p4 0 packages upgraded, 3 newly installed, 0 to remove and 1 not upgraded. Need to get 0B/2834kB of archives. After unpacking 8806kB will be used. Selecting previously deselected package nvidia-kernel-2.4.20.9.p4. (Reading database ... 183992 files and directories currently installed.) Unpacking nvidia-kernel-2.4.20.9.p4 (from .../nvidia-kernel-2.4.20.9.p4_1.0.4349-3+1_i386.deb) ... Selecting previously deselected package nvidia-glx. Unpacking nvidia-glx (from .../nvidia-glx_1.0.4349-2_i386.deb) ... Selecting previously deselected package nvidia-glx-dev. Unpacking nvidia-glx-dev (from .../nvidia-glx-dev_1.0.4349-2_i386.deb) ... Setting up nvidia-kernel-2.4.20.9.p4 (1.0.4349-3+1) ... Setting up nvidia-glx (1.0.4349-2) ... Setting up nvidia-glx-dev (1.0.4349-2) ... Now apt doesn't select the .athlon package, because the .p4 packge is in at the beginning of the argument list of the apt-get command line. I think that both invocations of apt should have the same result.

