I used to install packages with dpkg -i *.deb
command for off-line installation. Because all deb files are in one folder.
I want to avoid dependency error and stop installing packages as broken.
Ultimately my aim is to check dependencies and generate download script (if all dependencies are not satisfied) for only those package which is missing in mentioned folder. so-that I can first download missing packages and Then confidently install package by
dpkg -i *.deb
apt-cache showpkg $(find -iname '*.deb' -exec dpkg --info '{}' \; | awk '/Package:/ {print $2}')
shows dependencies but long list and not helpful to check whethter it is satisfied (exist) in mentioned folder or not. Also dpkg -I *.deb
errors following:
dpkg-deb: 'cabextract_1.4-4_i386.deb' contains no control component 'chromium-codecs-ffmpeg-extra_34.0.1847.116-0ubuntu2_i386.deb'
dpkg-deb: 'cabextract_1.4-4_i386.deb' contains no control component 'flashplugin-installer_11.2.202.350ubuntu1_i386.deb'
..
..
so on for each deb
Hence, That commands are not useful for me.
Further Clarification:
- First check all deb dependencies in my folder.
- according to package already installed, check this deb's are able to installed without dependency error or not.
- if yes then execute
dpkg -i *.deb
- else list missing package which not fond installed or in mentioned folder
Thanks.