RACADM on Proxmox and Debian

wiki.TerraBase.info
Revision as of 00:52, 17 May 2026 by Root (talk | contribs) (Created page with "RACADM on Proxmox 9.1.9 and Debian 13;<syntaxhighlight lang="text"> echo "=== Base Debian dependencies first ===" apt install -y ca-certificates wget gnupg libargtable2-0 echo echo "=== Dell OpenManage repo key ===" mkdir -p /etc/apt/keyrings wget -O /tmp/dell-openmanage.asc https://linux.dell.com/repo/pgp_pubkeys/0x1285491434D8786F.asc gpg --dearmor --yes -o /etc/apt/keyrings/linux.dell.com.gpg /tmp/dell-openmanage.asc echo echo "=== Dell OpenManage 11.1.0.0 Jammy rep...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

RACADM on Proxmox 9.1.9 and Debian 13;

echo "=== Base Debian dependencies first ==="
apt install -y ca-certificates wget gnupg libargtable2-0

echo
echo "=== Dell OpenManage repo key ==="
mkdir -p /etc/apt/keyrings
wget -O /tmp/dell-openmanage.asc https://linux.dell.com/repo/pgp_pubkeys/0x1285491434D8786F.asc
gpg --dearmor --yes -o /etc/apt/keyrings/linux.dell.com.gpg /tmp/dell-openmanage.asc

echo
echo "=== Dell OpenManage 11.1.0.0 Jammy repo ==="
cat > /etc/apt/sources.list.d/dell-openmanage-jammy.list <<'EOF'
deb [signed-by=/etc/apt/keyrings/linux.dell.com.gpg] https://linux.dell.com/repo/community/openmanage/11100/jammy jammy main
EOF

echo
echo "=== Update package indexes ==="
apt update

echo
echo "=== Remove package holds if present ==="
apt-mark unhold srvadmin-hapi srvadmin-idracadm7 libargtable2-0 2>/dev/null || true

echo
echo "=== Install RACADM for iDRAC7 ==="
apt install -y srvadmin-hapi=11.1.0.0 srvadmin-idracadm7=11.1.0.0

echo
echo "=== Create racadm command symlink ==="
ln -sf /opt/dell/srvadmin/bin/idracadm7 /usr/local/bin/racadm
hash -r

echo
echo "=== Test RACADM ==="
racadm help | head -20

...and to remove when done with it;

echo "=== Disable Dell repo ==="
mv -v /etc/apt/sources.list.d/dell-openmanage-jammy.list /etc/apt/sources.list.d/dell-openmanage-jammy.list.disabled

echo
echo "=== Refresh apt without Dell repo ==="
apt update

echo
echo "=== Hold installed RACADM packages ==="
apt-mark hold srvadmin-hapi srvadmin-idracadm7 libargtable2-0

echo
echo "=== Confirm package state ==="
dpkg -l | grep -Ei 'srvadmin|idracadm|argtable'
apt-mark showhold | grep -Ei 'srvadmin|idracadm|argtable' || true

echo
echo "=== Confirm RACADM still runs ==="
racadm help | head -20

...and if you want to crap can RACADM, IE reversing the installation, AKA Uninstall;

echo "=== Unhold packages ==="
apt-mark unhold srvadmin-hapi srvadmin-idracadm7 libargtable2-0 2>/dev/null || true

echo
echo "=== Remove RACADM packages ==="
apt purge -y srvadmin-idracadm7 srvadmin-hapi

echo
echo "=== Remove libargtable2-0 dependency if only installed for RACADM ==="
apt purge -y libargtable2-0

echo
echo "=== Remove racadm symlink ==="
rm -f /usr/local/bin/racadm

echo
echo "=== Remove Dell repo files and key ==="
rm -f /etc/apt/sources.list.d/dell-openmanage-jammy.list
rm -f /etc/apt/sources.list.d/dell-openmanage-jammy.list.disabled
rm -f /etc/apt/keyrings/linux.dell.com.gpg
rm -f /tmp/dell-openmanage.asc

echo
echo "=== Clean unused dependencies ==="
apt autoremove -y

echo
echo "=== Refresh apt ==="
apt update

echo
echo "=== Confirm removed ==="
command -v racadm || true
dpkg -l | grep -Ei 'srvadmin|idracadm|argtable' || true