Skip to content

Instantly share code, notes, and snippets.

@MrHassanMurtaza
Created February 11, 2020 07:29
Show Gist options
  • Save MrHassanMurtaza/e0ad1bc08f19e54a522507d78707e8c4 to your computer and use it in GitHub Desktop.
Save MrHassanMurtaza/e0ad1bc08f19e54a522507d78707e8c4 to your computer and use it in GitHub Desktop.
Install ncdu on amazon linux 2
#!/bin/bash
# install packages/dependencies for compilation
sudo yum -y install gcc make ncurses-devel
cd /tmp
# the latest version of ncdu is published here: http://dev.yorhel.nl/ncdu
# update the link below if necessary:
wget -nv http://dev.yorhel.nl/download/ncdu-1.10.tar.gz
tar xvzf ncdu-1.10.tar.gz
cd ncdu-1.10
./configure --prefix=/usr
make
sudo make install
@YEK-PLUS
Copy link

one line command is

curl https://gist.githubusercontent.com/MrHassanMurtaza/e0ad1bc08f19e54a522507d78707e8c4/raw/90660332b4fb0390a4f08d19d5ab21f6c159d783/install_ncdu_amazon_linux.sh | bash

@cliv
Copy link

cliv commented Feb 1, 2022

alternative instructions:

amazon-linux-extras install epel
yum install ncdu

@diadras
Copy link

diadras commented Jun 3, 2022

Commenting so I can find cliv his comment in the future :)
Thanks Cliv!

@mjaverto
Copy link

+1 @cliv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment