Look in /usr/src/redhat/SPECS/ for the SPEC file. Cd to this directory. Notice the coreutils.spec file.
Run the command "rpmbuild -bp coreutils.spec" to patch the source. This will uncompress the tarball(s) in /usr/src/redhat/SOURCE/, apply the patches, and the resultant source will be in /usr/src/redhat/BUILE/coreutils-<version>/.
My system is rpm based, and running "zypper si coreutils" also installed "libcap-devel". You may have some dependencies to install as well before being able to patch the source code.
recommendation. Since you have the source code at the ready, inside the coreutils directory, run:
This will produce a print worthy book documenting the around 100 commands this package supplies. It will make an excellent reference.
Last edited by jschiwal; 03-29-2011 at 01:21 PM.