-1

Is it possible to tell dpkg to only install a .deb if the new package version is higher than what's already installed on the system?

Example:

I have htop version 3.0.5 installed and I attempt to install 3.0.4 with dpkg -i htop-3.0.4-ubuntu.deb. The behavior I want is for dpkg to abort.

Lev
  • 158
  • 5

1 Answers1

0

from dpkg --help:

Options:
  -G|--refuse-downgrade      Skip packages with earlier version than installed.
Gerald Schneider
  • 23,274
  • 8
  • 57
  • 89