Hacker News new | ask | show | jobs
by priteau 4361 days ago
You can go to https://git.centos.org which is hosting all the sources used to build the system. Of course for RPM packages that is only metadata, not the actual upstream software source.
1 comments

Just out of curiosity, since it sounds like you might know: on ubuntu I can do something like sudo apt-get source packagename and the system will just download the associated source code if a source repo is setup in the system's sources list. Does RHEL/CentOS have a similar capability?
Yes it does. "yumdownloader --source package_name" will download the source RPM. yumdownloader is part of the yum-utils package.