Debian / Ubuntu: apt-get force reinstall package

‮www‬.lautturi.com
Debian / Ubuntu: apt-get force reinstall package

To force apt-get to reinstall a package on a Debian-based Linux system, such as Ubuntu, you can use the --reinstall option. This option tells apt-get to treat the package as if it is not installed, and install it again even if it is already installed.

For example, to force apt-get to reinstall the foo package, you can run the following command:

sudo apt-get --reinstall install foo

This will force apt-get to download and install the foo package again, even if it is already installed on the system.

Keep in mind that this may overwrite any local modifications or configuration files that you have made to the package. It is a good idea to make a backup of important files before reinstalling a package.

Created Time:2017-10-28 14:02:27  Author:lautturi