0

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
1
  • 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, 2013 at 20:58

2 Answers 2

1

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

http://www.debian.org/doc/manuals/maint-guide/checkit.en.html

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .