After ages ignoring my VPS (CentOS 7.4.1708), I decided I should do `yum update`. (Yeah, yeah, I know I should do it more often.)
It spewed through the dependency checks of a ton of stuff, and then got to nginx and said this:
Code:
---> Package nginx-all-modules.noarch 1:1.10.2-1.el7 will be updated
--> Processing Dependency: nginx-all-modules = 1:1.10.2-1.el7 for package: 1:nginx-1.10.2-1.el7.x86_64
---> Package nginx-filesystem.noarch 1:1.10.2-1.el7 will be updated
--> Processing Dependency: nginx-filesystem = 1:1.10.2-1.el7 for package: 1:nginx-1.10.2-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: 1:nginx-1.10.2-1.el7.x86_64 (@epel)
Requires: nginx-all-modules = 1:1.10.2-1.el7
Removing: 1:nginx-all-modules-1.10.2-1.el7.noarch (@epel)
nginx-all-modules = 1:1.10.2-1.el7
Updated By: 1:nginx-all-modules-1.16.1-1.el7.noarch (epel)
nginx-all-modules = 1:1.16.1-1.el7
Error: Package: 1:nginx-1.10.2-1.el7.x86_64 (@epel)
Requires: nginx-filesystem = 1:1.10.2-1.el7
Removing: 1:nginx-filesystem-1.10.2-1.el7.noarch (@epel)
nginx-filesystem = 1:1.10.2-1.el7
Updated By: 1:nginx-filesystem-1.16.1-1.el7.noarch (epel)
nginx-filesystem = 1:1.16.1-1.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
--skip-broken sounds more like a bandaid than a solution, and I don't know what the second suggested command does.
Found advice on the web to first run `yum makecache fast` and try again. No change.
Found other advice on the web to run `rpm -qa | grep 'the-package-in-question'`, but I have no idea how to interpret the output:
Code:
$ rpm -qa | grep 'nginx'
nginx-mod-http-xslt-filter-1.10.2-1.el7.x86_64
nginx-mod-http-image-filter-1.10.2-1.el7.x86_64
python2-certbot-nginx-0.27.1-1.el7.noarch
nginx-filesystem-1.10.2-1.el7.noarch
nginx-mod-http-perl-1.10.2-1.el7.x86_64
nginx-mod-stream-1.10.2-1.el7.x86_64
nginx-mod-mail-1.10.2-1.el7.x86_64
nginx-1.10.2-1.el7.x86_64
nginx-mod-http-geoip-1.10.2-1.el7.x86_64
nginx-all-modules-1.10.2-1.el7.noarch
Obviously I don't want to do something stupid and break my webserver. Can someone recommend a course of action, or recognize the problem by looking at the above bits of output? I'm really terrible at this kind of thing - I'm a developer, not a server admin.