K
K
kkoshakk2016-09-29 14:07:52
Nginx
kkoshakk, 2016-09-29 14:07:52

How to update on nginx server?

Tell me if I took the nginx source from the ubuntu repository, added google pagesped there, compiled and installed the deb package on the server - when updating nginx through the package manager, everything that I added will be lost and will need to be built again?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
neol, 2016-09-29
@neol

1. Specify a different name in debian/control (for example, nginx-kkoshakk ) so that it does not overlap with the distribution one, correct the names of the .postinst files. .dir etc. to match the package name and rebuild.
Before installing your package, it's best to apt-get purge nginx (assuming you already have config backups) to avoid config conflicts.
2. It can be simpler: apt-mark hold nginx

O
Oleg Tsilyurik, 2016-09-29
@Olej

when updating nginx through the package manager, everything that I added will be lost and will need to be rebuilt?

Lost (most likely).
And it was not necessary to build from source ;-)

R
romy4, 2016-09-29
@romy4

You have two ways: either you install from the repository, or you install and update manually from the sources. They cannot intersect with each other.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question