Protecting core packages from 3rd party software

I have been having a bit of a play with CentOS 5. I am really digging it, except I miss livna. What I love about the stack of core/extras/livna is that it plays nice together, and nothing gets clobbered.

For 3rd party packages in CentOS/RHEL I have resorted to using rpmforge. My trouble is the first time you run yum update a whole bunch of rpmforge packages want to install over CentOS/Redhat ones. I am not too worried, but I imagine that if I was running RHEL and paying Redhat for support this situation would not be ideal.

First thing, install “yum-protectbase”.

# yum install yum-protectbase.noarch

Now nothing that is part of the official repo will get upgraded by software packages from third parties like rpmforge.

4 Responses to “Protecting core packages from 3rd party software”


  • Ralf Brunckhorst

    Hi, I use this to contact you. Since your weblog has moved I cannot find a script to create a updated fedora boot dvd. Many links in the web point to http://www.users.on.net/~rgarth/weblog/fedora/patch_cd.autumn and there was a script update.sh
    I use this script in the past but accidentally delete it.
    But now I cannot find it anymore in the WEB.
    Can you help please.

    /Ralf

  • And I found the original:

    #!/bin/sh
    
    # Make sure to have yum-utils, anaconda, anaconda-runtime installed.
    # Run as root.
    
    # Works for Fedora Core 5 i386 and x86_64.
    
    # Structure: $FCBASE/ - Contents of DVD
    #            $FCBASE/updates - Directory where updates will be downloaded.
    #            $FCBASE/update.sh - This script
    
    export PYTHONPATH=/usr/lib/anaconda
    export PATH="$PATH:/usr/lib/anaconda-runtime"
    export FCBASE=`pwd`
    arch=`uname -i`
    date=`date +%Y%m%d`
    
    # Uncomment if you need Proxy support for wget
    #export http_proxy="http://172.24.83.67:8080"
    
    echo "`date` - Downloading updates..."
    echo ""
    
    cd $FCBASE/updates
    wget -nH -q --cut-dirs=7 -m -l 1 -c \
            http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/$arch/
    cd $FCBASE
    
    echo "`date` - Merging updates..."
    echo ""
    
    cp -f $FCBASE/updates/*.rpm $FCBASE/$arch/Fedora/RPMS/
    repomanage --old $FCBASE/$arch/Fedora/RPMS | xargs rm -f
    cd $FCBASE/$arch
    createrepo -g Fedora/base/comps.xml .
    cd ..
    
    echo "`date` - Rebuilding installer..."
    echo ""
    pkgorder $FCBASE/$arch $arch Fedora > $FCBASE/pkgfile.$date
    buildinstall --comp dist-5.$date --pkgorder $FCBASE/pkgfile.$date \
            --version 5 --product 'Fedora Core' --release 'Fedora Core 5' \
            --prodpath Fedora $FCBASE/$arch
    rm -f $FCBASE/pkgfile.$date
    
    echo "`date` - Creating DVD iso..."
    echo ""
    
    find $arch -name "TRANS.TBL" -exec rm -f {} \;
    mkisofs -q -r -R -J -T -no-emul-boot -boot-load-size 4 -boot-info-table \
        -V "FC 5.$date $arch DVD" \
        -A "Fedora Core 5 $date $arch DVD" \
        -publisher "Simone Caronni slaanesh@fastwebnet.it" \
        -p "Simone Caronni slaanesh@fastwebnet.it" \
        -b isolinux/isolinux.bin -c isolinux/boot.cat -x lost+found \
        -o FC-5.$date-$arch-DVD.iso $arch
    implantisomd5 FC-5.$date-$arch-DVD.iso
    

  • Ralf Brunckhorst

    Thank you so much.

    /Ralf

Leave a Reply