dpkg

How to install .deb with dpkg non-interactively?


I'm trying to install a .deb file... for example:

example.deb

But the program is already installed in an older version on the Debian minimal server.

So doing dpkg -i example.deb is creating a dialog, if i want to keep the configs... is there any way to do this non-interactive?


Solution

  • You can pipe yes into it:

    yes | dpkg -i package.deb
    

    man yes