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
  • 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. – chronitis Jun 8 '13 at 20:58

You may like the lintian command which checks for common packaging errors. The link below may help you.


  • you can't check deb package directly using debi. – shantanu Jun 9 '13 at 7:20

To see the contents of a .deb file, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo dpkg-deb -c <file_name.deb>

To read the contents of a installed package:

sudo dpkg -L <package_name>

For more info see Debian Help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.