Re: Moving from Linux Repository to System Update

Robert Jacobson <[email protected]>
Newsgroups gmane.linux.hardware.dell.poweredge
Message-ID <CAP1uAO1OxQ281W8oVEr3JHEzTpsU12pfu=OP5Cem3xB82GXMYQ@mail.gmail.com>
Obviously this isn't an "official" answer; but here's basically what I did
-- note that I've trimmed some locally-specific code, so the indenting is
funny.

It certainly isn't the cleanest way to do things but it has worked for
me... YMMV, no warranty, etc.

-------------------------------
#!/bin/bash

using_DLP=0
    if [ $(yum repolist | grep dell | grep -q omsa ; echo $? ) -eq 0 ]; then
        using_DLP=1
    fi

        if [ $using_DLP -eq 1 ]; then
            # uninstall OMSA
            /opt/dell/srvadmin/sbin/srvadmin-uninstall.sh -f

            # remove all packages originating from dell-omsa repository
            yum -y remove $(yumdb search from_repo "dell-omsa*" | grep
'[a-z]' | grep -v from_repo)

            # remove the repo definition
            yum -y remove dell-omsa-repository yum-dellsysid

            # manually remove any files left, just in case...
            rm -f /etc/yum.repos.d/dell-omsa-repository.repo
            rm -rf /opt/dell/srvadmin /usr/libexec/dell_dup
/usr/share/firmware/dell

            # install new repo for Dell System Update
            wget -q -O -
http://linux.dell.com/repo/hardware/dsu/bootstrap.cgi | bash
            yum -y install srvadmin-all
            yum -y install dell-system-update
            yum -y install srvadmin-idracadm7

            # /tmp mount be mounted with exec permissions for firmware
updates to complete
            # at least, this was the case for update_firmware -- not sure
for dsu
            mount -o remount,exec /tmp

            # Run dsu to update firmware
            /usr/sbin/dsu -n

            # Start OMSA software
            /opt/dell/srvadmin/sbin/srvadmin-services.sh start
        fi

_______________________________________________
Linux-PowerEdge mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.