how to install source packages?

Mathieu Bridon bochecha at fedoraproject.org
Sat Jan 9 17:34:18 UTC 2010


On Sat, Jan 9, 2010 at 18:26, Jud Craft <craftjml at gmail.com> wrote:
> I've enabled the updates-source and fedora-source repositories in
> PackageKit, but how do I, for example, install the source package for
> Cairo?
>
> A packagekit search for Cairo returns nothing from the updates-source
> or fedora-source repositories, and nothing called "cairo-source" or
> anything of the like.  Just binary cairo and cairo-devel.
>
> In short, how do I install source packages?  Have I missed an obvious
> step or is it really unintuitive?

Not sure there is a way with yum/PK, but you can do:
$ yumdownloader --source package

Yum will enable the -source repos to fetch the source package.

After that, just install it normally with rpm:
$ rpm -ivh source_package


----------
Mathieu Bridon




More information about the devel mailing list