For offline deb package installation it is recommended to use apt rather than directly dpkg because :
- dpkg doesn't resolve umnet dependencies and if we tries to install deb with directly dpkg (assuming dependencies are missing), it will install broken package and may break dependencies.
- For installing single file gdebi is recommend as it can resolve dependencies
- For installing software package (usually multiple debs), we are not using sudo dpkg -i *.deb and recommended to go with Local Repository Method.
- In this method, we install package by sudo apt-get install <package>. Here apt will first resolves dependencies (make sure all dependencies are available in debs or not missing) and then if all things are OK, (no missing dependencies, also making sure that not breaking any dependencies) it starts to install packages similarly like sudo dpkg -i *.deb.