[ale] Epic 'wish I had chosen Debian' fail

Richard Bronosky Richard at Bronosky.com
Mon Sep 7 11:56:10 EDT 2009


--source is exactly what I was trying, but the default CentOS install
does list any source repos. I cannot find any documentation on adding
source repos to CentOS.

On 9/7/09, Michael H. Warfield <mhw at wittsend.com> wrote:
> On Sun, 2009-09-06 at 22:52 -0400, Richard Bronosky wrote:
>> I never did learn how to add a source repo to yum, but I did work
>> around it. The following works for downloading a source package:
>
>> p=postfix; # Change this to your packagename.
>> curl -O $(yumdownloader --urls $p |sed
>> '$!d;s?/os/.*/?/os/SRPMS/?;s/[^.]*\.rpm$/src.rpm/')
>>
>> .!# RichardBronosky #!.
>
> How about "yumdownloader --source foo"
>
> It's in yum-utils.  I use it all the time to snatch rawhide source rpm's
> (like the gnupg and gnupg2 packages just recently) to backport into
> earlier distros:
>
> yumdownloader --enablerepo=rawhide --source gnupg gnupg2
>
> Done.  Install the rpms and rebuild them.
>
> 	Mike
>
>> On Sun, Sep 6, 2009 at 1:09 AM, Richard Bronosky<Richard at bronosky.com>
>> wrote:
>> > I just spent 3 hours trying to install postfix compiled with mysql
>> > support. Most of that time was spent trying to get a source repo added
>> > so I could: yumdownloader --source postfix
>> >
>> > No luck. Wasted night. I could have really used the sleep. </rant>
>> >
>> > --
>> > Sent from my mobile device
>> >
>> > .!# RichardBronosky #!.
>> >
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>
> --
> Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
>    /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
>    NIC whois: MHW9          | An optimist believes we live in the best of
> all
>  PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
>

-- 
Sent from my mobile device

.!# RichardBronosky #!.


More information about the Ale mailing list