How to use dpkg to install the package only in case it is newer version than the one that is currently installed? sudo dpkg -i --skip-same-version "/path/to/file.deb"; says: dpkg: version 1.0.5 of proton-mail already installed, skipping I am unsure what it would do if i have installed lower/higher version than the .deb file.