Anaconda installs packages with an incorrect order
Re: Anaconda installs packages with an incorrect order
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?)
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?)
Re: Anaconda installs packages with an incorrect order
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.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.
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
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
Re: Anaconda installs packages with an incorrect order
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).
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).
Re: Anaconda installs packages with an incorrect order
Irrelevant.
I'll wait until you habe read the links posted.
I'll wait until you habe read the links posted.
Re: Anaconda installs packages with an incorrect order
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.
When removing the specific files, and just describing just the packages names - same issue happens.
Re: Anaconda installs packages with an incorrect order
Again, use the package names, not the files.Specifying the specific files in the spec is something I tried for solving the issue of the packages order.
Is this PACKAGE installed? Yes or no ....
What???? I don't understand.When removing the specific files, and just describing just the packages names - same issue happens.
Re: Anaconda installs packages with an incorrect order
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.
MyRpm.spec has "Requires: YYY"
Anaconda (sometimes) installs MyRpm before YYY is installed which causes the whole installation to fail.
Re: Anaconda installs packages with an incorrect order
So how about posting your updated spec file where you are using package names (because the one you posted previously doesn't)?
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: Anaconda installs packages with an incorrect order
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.
Any issues should be resolved at that point, before trying to create the iso.