How can i check a *.deb file is good to install in current system without install it? Is there any way that i can use dpkg or apt-get or other command line tools for this purpose?
Note: I need to do this using command line(no gui or synaptic) and there may have multiple deb files.
if dpkg --check *.deb == True
dpkg -i *.deb
else
perror
dpkg
has a--dry-run
option, the output of which should tell you want you want by inspection, but without a lot of grep testing I don't think this answers your question by itself.