How can I install ncdu on Red Hat/CentOS?

If you found this post helpful, kindly share it and show your support :)

If you are getting below error while installing ncdu using yum command ie, yum install ncdu

No package ncdu available

You will need to download the latest version o ncdu package from with wget on the server


then extract the tarball, with:

tar -xzvf ncdu-1.15.1.tar.gz

this will create a new folder named ncdu-1.15.1. Enter that folder and execute:

./configure --prefix=/usr

If it’s unable to find ncurses.h and the configuration fails,

checking for ncurses.h... no
configure: error: required header file not found

you’ll have to install curses library headers

yum install ncurses-devel ncurses

Once you install the library, you will need to execute the configure step again.

Then run,



sudo make install

That’s it 🙂

You can optionally remove the ncdu-1.15.1.tar.gz file and the directory where the source files were extracted as you don’t need them anymore.

FYI :- To Install ncdu on Debian/Ubuntu linux, you can use below command

sudo apt-get install ncdu -y


sudo aptitude ncdu -y


Mohammed Noufal

I'm Mohammed Noufal, working as Server Admin for the last 10 years.  In my day-to-day life, l had to face different problems related to Web-hosting. On my website, you can find solutions for different Web-hosting-related problems. Sometimes, I spent hours searching/googling to find a solution. This inspired me to start a website that gives solutions to different Webhosting problems. This website includes basic Linux and windows commands, and different control panels like cPanel, Plesk, DirectAdmin, Webmin & so on. You can find solutions and or suggestions for different Web-hosting related problems from here. Hence I would like to say Errorlogz is your server protector.  I will be glad if Logdetect can help any one of the Server admins to find a solution to his problem.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *