How To Install Packages From Git.CentOS.org

Home » CentOS » How To Install Packages From Git.CentOS.org
CentOS 4 Comments

Hi all,

how can I install rpms from git.CentOS.org? I’d like to install and test the realtime-kernel.

It seems to me that https://wiki.CentOS.org/Sources only means to build srpms.

What I ned is an rt-kernel with headers for further compiling.

Purpose: I’d like to build a digital audio workstation and for this I’d like to try out CentOS with the following packages first:
– kernel-rt
– ardour
– calf-plugins

BTW: Is there an audio SIG?

Thanks in advance Tim

4 thoughts on - How To Install Packages From Git.CentOS.org

  • There are not packages to test for everything on git.CentOS.org .. just the things we build. The real time kernel is not in RHEL, though the source code for it is on git.CentOS.org. Since it is not part of the main RHEL release the CentOS team does not have a build.

    You can try to build it yourself, but first you must create the SRPM
    from the source code on git.CentOS.org.

    You first need to install rpm-build, scl-utils-build, and git (in tis case on a CentOS-7 machine .. need to use the version you want to build for):

    yum install rpm-build scl-utils-build git

    You can use the tools here to create SRPMS from git.CentOS.org source code:

    https://git.CentOS.org/summary/CentOS-git-common.git

    You can get the repository url there for cloning.. and do:

    git clone https://git.CentOS.org/git/CentOS-git-common.git

    then in the CentOS-git-common directory you will see several scripts that you can use to build the SRPMs from source.

    then you can get the source code for the package you want to build .. in this case the kernel-rt:

    git clone https://git.CentOS.org/git/rpms/kernel-rt

    then go to the kernel-rt directory and checkout the branch and build it:

    cd kernel-rt git checkout c7-rt /into_srpms.sh

    that should download and make the SRPM for you. If you do not want the
    ‘dist’ tag for the rpm (currently .el7_2), you can do:

    /into_srpms.sh -d .el7

    That would change the dist tag to .el7 instead of .el7_2

    There is no audio SIG at the moment.

  • Hey Johnny,

    thank you very much for your instructions. The build is running at the moment but there seems to be a small bug in kernel-rt.spec.

    I changed the line 684 from mv %{name}-%{rpmversion}-%{pkg_release_simple}%{dist} vanilla-%{kversion};
    to mv %{name}-%{rpmversion}-%{pkg_release_simple}* vanilla-%{kversion};

    The reason is that the tarball contains a folder with dist-tag .el7_2. So when I want to change the dist tag to .el7 the unpacked sources folder can’t be renamed to “vanilla”.

    Regards Tim

    Am 05.02.2016 um 11:28 schrieb Johnny Hughes:

LEAVE A COMMENT