Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The answers provided to this question doesn't help.

I'ved tried

yum install ncdu

But I'm getting

No package ncdu available
share|improve this question
you might want to ... put more in the text before you get modded down... like explain further what difficulties you're having... e.g. is there a repo, does it have to built from source... – xenoterracide Nov 12 '10 at 13:33
@xeno - there you go. – ripper234 Nov 12 '10 at 13:37
Curious; from what I can tell, it's in the [repositories][1]. [1]: admin.fedoraproject.org/pkgdb/acls/name/ncdu – Shawn J. Goff Nov 12 '10 at 14:57

If you are using Red Hat Enterprise Linux, I do not think ncdu is in the RHEL server repositories, repositories. I do not have a machine where I can check if it is in the workstation repositories, but I suspect it isn't. If it isn't, one option is the use EPEL (faq):

EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS and Scientific Linux.

ncdu does seem to be in the EPEL repositories intended to work with RHEL 4 and RHEL 5. Directions for how to use these repositories can be found here:


Alternatively, you can always download the tool from the upstream website:


and follow the directions in the INSTALL file. However, this will require you to chase down dependencies and install the tools needed to build the project.

share|improve this answer

You will need to download the latest ncdu package from http://dev.yorhel.nl/ncdu with wget.

Login as root to your machine and under /root download it:

wget http://dev.yorhel.nl/download/ncdu-1.10.tar.gz

then extract the tarball, with:

tar -xzvf ncdu-1.10.tar.gz

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

./configure –-prefix=/usr

If it can't find ncurses.h and the configure fails,

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

you'll have to install curses library headers.

then run,

make && make install

and you are done.

share|improve this answer
// , Doesn't this require other dependencies? – Nathan Basanese Nov 26 '15 at 5:44
// , Also, I get the following error when I attempt ./configure: [nbasanese@rhel022 ncdu-1.11]$ ./configure –-prefix='/usr' configure: error: invalid variable name: '–-prefix' – Nathan Basanese Nov 26 '15 at 5:51
@Nathan Just use one dash before prefix. Didn't run into any other dependencies aside from curses. – M M May 4 at 20:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.