Answer the question
In order to leave comments, you need to log in
What happens if you install what is already installed?
Good day!
Ubuntu VPS.
Yesterday I had a hot day, due to inexperience I dropped my site several times, several times I wanted to reinstall the system from scratch, but still coped with all the problems without reinstalling, everything works! But at the time when the site was lying, I was in a fever to find a way out and tried to install what was already installed. Here, for example, I used the commands several times:
apt-get install php7.2
apt install php7.2-mysql
Answer the question
In order to leave comments, you need to log in
Installed things are usually not re-installed. But if the installation fact is not checked (or ignored), then everything depends on the installer script.
Installer:
(if not disabled) checks dependencies and installs what is not
(always) decomposes package files in the places where they are assigned to lie
(if provided) backs up old configs
(if provided) installs new configs, while old ones may be overwritten
( always) updates the information in the database with data about installed programs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question