How to Install .debs in a Folder Using a Single Command

12.04deb

Hello I'm using Ubuntu 12.04 Beta 2 and I've got the .debs of the softwares I had been using in Oneiric. I wanna install them all!! But the problem is I can't install them one by one [due to shortage of time and patience].

Is there any command to install all the .debs placed in a single folder once and for all!!

Best Answer

here is how Click the Dash -> type Terminal

open up the terminal

then type cd PATH_TO_THE_FOLDER_CONTAINING_THE_DEBS

then run

sudo dpkg -i *.deb

basically, what this does is fills in the rest of the name in place of the * character. You may encounter an error saying dependencies not met, if you see this then you can run

sudo apt-get install -f

This usually will cause apt to download the missing dependencies.