LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   how do anaconda install package? (http://www.linuxquestions.org/questions/linux-software-2/how-do-anaconda-install-package-4175437230/)

chenjintao_ii 11-15-2012 03:06 AM

how do anaconda install package?
 
Hi, there.
i installed two packages(say, test1.rpm and test2.rpm) while installing CentOS, there's no dependency relationship between them. i want install test1.rpm firstly, but the fact is the test2.rpm was installed firstly. I don't want to add any dependency relationship, any method else can solve this problem? And what's the order of the software packages when the anaconda install them?

Any help will be appreciated.

acid_kewpie 11-15-2012 04:11 AM

you can't control this with default package installation, but you could put a %post section into a kickstart script to install them as you see fit.

chenjintao_ii 11-15-2012 08:38 PM

Quote:

Originally Posted by acid_kewpie (Post 4829884)
you can't control this with default package installation, but you could put a %post section into a kickstart script to install them as you see fit.

thanks for your reply. kickstart is not my choice, too.

I installed Centos many times, and the installation orders recorded in /root/install.log are all the same. Obviously it's not a random order. So what's the principle of the anaconda to decide the order?

acid_kewpie 11-16-2012 02:05 AM

well it's dependency based. It sounds like you're maybe overwriting files common between two packages? That's not a good move if you've written these packages yourself.

chenjintao_ii 11-16-2012 03:38 AM

i'll not overwrite any files, actually, both test1.rpm and test2.rpm can work independently, the only relationship is that test2.rpm will tell users on the GUI whether test1.rpm installed. Nevertheless, if test2.rpm installed earlier than test1.rpm, it is inconvenient to let test2.rpm tell users on the GUI that test1.rpm has installed...

Of course there are some other methods to fix this problem, but I want to change the installation order mostly.

acid_kewpie 11-16-2012 03:50 AM

why would an rpm pop up a gui?? I don't follow.

How does this relate to anaconda? i'm lost tbh. If you're personalizing an install, then you're surely using a kickstart to achieve personalization, no?

chenjintao_ii 11-18-2012 07:24 PM

i mean, after install the rpm package, it will show user a GUI to manage some function.
GUI is not relate to anaconda.
Anyway, your answer is that there's only two way to change the installation order: rpm dependency and kickstart.

i've add dependency for the two packages, though it's not a perfect solution.

thanks for your patient reply.


All times are GMT -5. The time now is 09:25 PM.