Assumed the packages are needed for a machine without Internet access and you want to install the package + the dependencies + the dependencies of the dependencies, then copy them into one directory abd install them by using the asterisk. sudo dpkg -i * If it won't work, because a package would be installed, before the needed dependencies would be installed, use sudo dpkg --force-depends -i *