Ask Your Question
1

How to get source code of packages in Fedora?

asked 2014-08-11 12:50:03 -0500

trendies1000 gravatar image

Hi I just wanna know how do I get the source code of programs such as Gimp for instance, in Ubuntu I run in the command line apt-get source gimp and I get three files (.dsc, .tar.gz, .orig.tar.xz)

so How command should I run in order to get this three files?? thanks.

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
2

answered 2014-08-11 15:18:26 -0500

skytux gravatar image

If you want, for example, to download the source package of Gimp, then:

$ yumdownloader --source gimp

But if you want the source of the package alongside its dependencies, then:

$ yumdownloader --source --resolve gimp

HTH,

Germán.

edit flag offensive delete link more

Comments

1

Then you will need to extract the .srpm to get the actual sources (tarball) by doing this:

rpm2cpio <package>.src.rpm  | cpio -id
mayorga gravatar imagemayorga ( 2014-08-11 15:40:10 -0500 )edit

Thanks @mayorga, I missed that part :-)

skytux gravatar imageskytux ( 2014-08-11 16:19:41 -0500 )edit

yumdownloader is not installed by default, you need to install yum-utils

jcubic gravatar imagejcubic ( 2017-08-14 11:05:57 -0500 )edit

This is outdated, see this answer for up to date information: https://ask.fedoraproject.org/en/ques...

dreua gravatar imagedreua ( 2018-07-20 16:15:00 -0500 )edit
0

answered 2014-08-11 13:57:11 -0500

mether gravatar image

If you are used to apt, you can find the equivalent commands in

http://yum.baseurl.org/wiki/apt2yum

Hope that helps

edit flag offensive delete link more
-1

answered 2014-08-11 13:28:54 -0500

SDas gravatar image

go to fedora website then go to downloads there exists a download link for downloading full source code dvd package for fedora download it and then install.

edit flag offensive delete link more

Comments

i downloaded that dvd but can u explain please how to use that please.... thank you in advance

Tiger gravatar imageTiger ( 2014-08-11 13:49:43 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-08-11 12:50:03 -0500

Seen: 3,091 times

Last updated: Aug 11 '14