Debian / Ubuntu: apt-get force reinstall package
To force reinstall a package using apt-get on Debian or Ubuntu, you can use the following command:
sudo apt-get install --reinstall <package-name>For example, to reinstall the nginx package, use the following command:
sudo apt-get install --reinstall nginxThe --reinstall option tells apt-get to reinstall the specified package, even if it is already installed and up to date.
