linuxbashubuntudebiandpkg

How to install multiple .deb files but in specific order with single linux command


I have 4 debian installer :

abc.deb
jkl.deb
pqr.deb
xyz.deb

I want to install jkl and xyz first, and then I want to install abc.deb and pqr.deb. So the sequence/order the .deb files should be installed should be : jkl.deb , xyz.deb, abc.deb, pqr.deb.

PS:

  1. When I am trying to run apt-get install ./*.deb it is picking the .deb files in random (or maybe alphabetically) order.
  2. So I did apt-get install ./jkl.deb ./xyz.deb ./abc.deb ./pqr.deb but still I am seeing that pqr.deb is Setting up first before abc.deb

Can someone let me know how can i install these four deb in specific order by single linux command ?


Solution

  • Try

    apt-get install ./jkl.deb && apt-get install ./xyz.deb && apt-get install ./xyz.deb && apt-get install ./pqr.deb