[FC6] Yum install source <package-name> ?

Todd Zullinger tmz at pobox.com
Sat May 26 14:52:54 UTC 2007


A.J. Bonnema wrote:
>  Does any one know how I can get to the sources of the source
>  repositories?
> 
>  I can not find any sources using "yum search" nor does kyum include
>  any sources in the available list.
> 
>  I also checked this list, but found only discussions on kernel
>  source (which appears to be different anyway).
> 
>  What I would like is to get the source from a regular package like
>  f.i.  xmlindent and then just browse it or compile it or whatever.
> 
>  P.S. Ofcourse I enable the source repository I am interested in,
>  but that did not help.....

If I understand your question, then you can get more or less what you
want using yumdownloader from the yum-utils package:

    $ yumdownloader --source kernel

That will download the .src.rpm for the kernel which you can then
rebuild using rpm or just unpack it to poke around or whatever you
like.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ever notice that even the busiest people are never too busy to tell
you just how busy they are?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070526/73ab91c4/attachment-0001.sig>


More information about the fedora-list mailing list