Re: conflicting packages in kickstart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 23, 2010 at 12:22 PM, Greg Haase
<ghaase@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi Christian, I had a similar issue when using rpms I created. To get them
> to install properly I needed to set the priority with yum priorities.
>
> Here is an article that discusses how to do so for RPM Forge.  Look under
> Point 2.  Where it says "2.1. Priorities" on the following link.
>
>
> http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
>
> I would do this in the %post section
> ################
> %post
> yum install yum-plugin-priorities
>
> cat <<EOF>> /etc/yum/pluginconf.d/priorities.conf
> [main]
> enabled=1
> EOF
>
> cat <<EOF>> /etc/my-custom-yum-repo.repo
>  repo --name=csddev
> --baseurl=http://amigo:82/home:/csd:/branches:/MeeGo:/1.0:/Core/ARM_Cross/
> --save --debuginfo --source
> repo --name=core  --baseurl=http://amigo:82/MeeGo:/1.0:/Core/ARM_Cross
>  --save --debuginfo --source
> priority=1
>  EOF
>
> ## Then install the package
> Yum erase    the-package-I-don't-want
> Yum install my-special-package-with-a-duplicate-name
> #############
>
> I hope that helps.

Hi Greg,
 Unfortunately this won't work in my case - my objective is to build a
very small target (which is why I'm replacing some utilities which
busybox counterparts) so I am not installing yum (or rpm for that
matter) and can't do this post-install.
 If nothing else works, I'm planning on munging the 2 repos into a
third one, but I don't think this will scale well if I have > 1
busybox options later (or other replacement tools). So I'm really
hoping to find a solution within the kickstart configuration. Your
reply doesn't give me much hope that such a solution exists though...

 Thanks,
   csd


>
>
> Greg
>
>
>
> On 9/23/10 11:24 AM, "Christian Daudt" <csd_b@xxxxxxxxx> wrote:
>
>> [I tried #kickstart channel on IRC but it seems awfully quiet, so
>> reposting to the list]
>> hi,
>>  I have a kickstart question (well Meego's image-creator, which uses
>> kickstart): If I have 2 pkgs that provide the same thing, how can I
>> get kickstart to be happy about using the one I picked? There is
>> "grep.rpm"  already in one of the repos I'm using, and I added a
>> busybox rpm with grep in it, which I want to use in my image instead
>> of the grep already in the repo so I listed my busybox in the ks file,
>> but it still tries to grab the grep rpm through other indirect
>> dependencies and complains:
>> Error: failed to create image : Unable to install: [('file /bin/grep
>> conflicts between attempted installs of
>> busybox-mxc-1.16.0-24.1.armv5tel and grep-2.5.3-6.1.armv5tel'
>> I have the busybox rpm listed in my ks file but not the grep rpm (its
>> being brought in indirectly). I even tried "-grep" in the rpm list to
>> see if that would help but it didn't. Any pointers would be
>> appreciated.
>>
>> Here's are the relevant parts of the ks file I tried:
>> ----------------------------------------------------------------
>> ### repos start ###
>> repo --name=csddev
>> --baseurl=http://amigo:82/home:/csd:/branches:/MeeGo:/1.0:/Core/ARM_Cross/
>> --save --debuginfo --source
>> repo --name=core  --baseurl=http://amigo:82/MeeGo:/1.0:/Core/ARM_Cross
>>  --save --debuginfo --source
>>
>>
>> ### repos end ###
>>
>> %packages --excludedocs
>>
>> busybox-mxc <<<<< Comes from csddev repo above, and has a "provides:
>> grep" defined in it, along with /bin/grep
>>
>> -grep <<< tried both with this line and without it
>>
>> openssh-server <<< this one is in repo "core" and pulls in "grep" rpm
>> indirectly
>> ---------------------------------------------------------------------------
>>
>> thanks,
>>    csd
>>
>> _______________________________________________
>> Kickstart-list mailing list
>> Kickstart-list@xxxxxxxxxx
>> https://www.redhat.com/mailman/listinfo/kickstart-list
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/kickstart-list
>

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list



[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux