Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install LSI MegaCli .deb package on Debian/Ubuntu

download

wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip

unzip

unzip 8-07-14_MegaCLI.zip

create debian package

cd Linux
sudo alien MegaCli-8.07.14-1.noarch.rpm

install debian package

sudo dpkg -imegacli_8.07.14-2_all.deb

run MegaCli

/opt/MegaRAID/MegaCli/MegaCli64 -h
@jasonpit

This comment has been minimized.

Copy link

jasonpit commented Aug 30, 2018

Thank you!!

also found a typo

sudo dpkg -imegacli_8.07.14-2_all.deb

should be

sudo dpkg -i megacli_8.07.14-2_all.deb

@binakot

This comment has been minimized.

Copy link

binakot commented Mar 31, 2019

This is my way for Ubuntu:

wget --user=hetzner --password=download http://download.hetzner.de/tools/LSI/tools/MegaCLI/8.07.14_MegaCLI.zip
unzip 8.07.14_MegaCLI.zip -d megacli
cd megacli/Linux
sudo alien MegaCli-8.07.14-1.noarch.rpm
sudo dpkg -i megacli_8.07.14-2_all.deb
ln -s /opt/MegaRAID/MegaCli/MegaCli64 /usr/bin/megacli
@AysadKozanoglu

This comment has been minimized.

Copy link

AysadKozanoglu commented May 28, 2019

Repo Source for megaRaid and other different Raid Controller
see: https://hwraid.le-vert.net/wiki/DebianPackages

for debian distributions

DIST=$(lsb_release -c | grep "Codename:" | awk '{print $2}')  # jessie wheezy or stratch  whatelse
wget -O - https://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | sudo apt-key add -
echo " deb http://hwraid.le-vert.net/debian $DIST main " > /etc/apt/sources.list.d/raidtoolRepo.list
apt-get update
apt-get install megactl megacli megamgr
@linushstge

This comment has been minimized.

Copy link

linushstge commented Jul 4, 2019

Thanks @AysadKozanoglu :)

@ZekunYin

This comment has been minimized.

Copy link

ZekunYin commented Jul 16, 2019

thx

@krtschmr

This comment has been minimized.

Copy link

krtschmr commented Oct 23, 2019

no megacli for debian on 64 bit system?

MegaCli: error while loading shared libraries: libncurses.so.5: cannot open shared object file
Then you're probably on a 64-bit (or mixed) system and want to use MegaCli64 instead (or install lib32ncurses5(verify))

can't find MegaCli64 . smh

@M4GNV5

This comment has been minimized.

Copy link

M4GNV5 commented Nov 10, 2019

@krtschmr you have to run apt install libncurses5

@thanratty

This comment has been minimized.

Copy link

thanratty commented Nov 16, 2019

Worked perfectly. Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.