Anaconda installs packages with an incorrect order

Issues related to configuring your network
User avatar
moradiv
Posts: 21
Joined: 2019/04/18 09:34:53

Re: Anaconda installs packages with an incorrect order

Post by moradiv » 2019/04/22 08:35:01

I added the "Requires (pre)" attribute with the specific files because I had issues when running the "%pre" section which uses those commands.
Within the package spec %pre code, I make use with sudo, su, echo, groupadd, useradd, cp, and also a file that is member of YYY package.
But even with those in the package spec, I handle order issue when the package is installed before YYY which described as both Requires and Requires(pre).
The question is - WHY (YYY?)

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Anaconda installs packages with an incorrect order

Post by TrevorH » 2019/04/22 11:24:03

Within the package spec %pre code, I make use with sudo, su, echo, groupadd, useradd, cp, and also a file that is member of YYY package.
Why? You do not need to. You are already root at this point as you need to be root to install a package in the first place. Thus you do not need sudo or su and the rest are standard utilities that will be installed anyway.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
moradiv
Posts: 21
Joined: 2019/04/18 09:34:53

Re: Anaconda installs packages with an incorrect order

Post by moradiv » 2019/04/22 11:56:05

Correct, sudo is not needed. there are places in the %pre code that should be fixed.
This is not the real problem, though. The problem is regarding RPMs installation order. this package is installed before YYY package installed, although it is specified in both Requires and Requires (pre).

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Anaconda installs packages with an incorrect order

Post by aks » 2019/04/23 19:30:13

Irrelevant.
I'll wait until you habe read the links posted.

User avatar
moradiv
Posts: 21
Joined: 2019/04/18 09:34:53

Re: Anaconda installs packages with an incorrect order

Post by moradiv » 2019/04/25 07:03:36

Specifying the specific files in the spec is something I tried for solving the issue of the packages order.
When removing the specific files, and just describing just the packages names - same issue happens.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Anaconda installs packages with an incorrect order

Post by aks » 2019/04/25 19:42:34

Specifying the specific files in the spec is something I tried for solving the issue of the packages order.
Again, use the package names, not the files.

Is this PACKAGE installed? Yes or no ....
When removing the specific files, and just describing just the packages names - same issue happens.
What???? I don't understand.

User avatar
moradiv
Posts: 21
Joined: 2019/04/18 09:34:53

Re: Anaconda installs packages with an incorrect order

Post by moradiv » 2019/04/28 06:32:24

What I'm saying is: the installation order is incorrect.
MyRpm.spec has "Requires: YYY"
Anaconda (sometimes) installs MyRpm before YYY is installed which causes the whole installation to fail.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Anaconda installs packages with an incorrect order

Post by aks » 2019/04/28 14:47:40

So how about posting your updated spec file where you are using package names (because the one you posted previously doesn't)?

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Anaconda installs packages with an incorrect order

Post by hunter86_bg » 2019/05/05 06:01:40

In order to resolve this issue create a local repository and from another CentOS try to install the packages needes.
Any issues should be resolved at that point, before trying to create the iso.

Post Reply