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

What's the simplest way to download/install software on Red Hat Linux (from bash command line)?

share|improve this question
You probably want to use your package manager, which depends on your distro. Which are you using? – Michael Mrozek Nov 12 '10 at 7:25
Redhat, so it seems – ripper234 Nov 12 '10 at 8:33
up vote 8 down vote accepted

For Red Hat/Fedora:

$ yum install foo

For Ubuntu ( run this as root ) :

# apt-get install foo
share|improve this answer
I'm trying "yum install ncdu", and getting "No package ncdu available." (See unix.stackexchange.com/questions/3961/…). What now? – ripper234 Nov 12 '10 at 10:25
@ripper234 Not all distros provide ncdu – N J Nov 12 '10 at 10:33
So, what are my options then? Do I have to download the source and compile? – ripper234 Nov 12 '10 at 11:18
Suse uses yast not yum – xenoterracide Nov 12 '10 at 13:26
@ripper234 ... I don't know what that is but I'll bet it's in an external repo, try asking a second question on here "how can I install ncdu on Red Hat" and ask if it's available in any repo's in the text. – xenoterracide Nov 12 '10 at 13:27

For Debian/Ubuntu

aptitude install firefox

For Fedora i think it is

yum install firefox

[note] Run these as root.

share|improve this answer
@Stefan, what's up with # and $ ? – Johan Nov 13 '10 at 11:36
see this discussion. # means the command is run as root, $ is normal user. – Stefan Nov 13 '10 at 12:24

If you are using Red Hat Enterprise Linux, it happens that the package you are looking for is in EPEL, so you can install that:

sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

and then you can yum install ncdu.

If you are using ancient Red Hat Linux, the answer is for the love of all that is holy, time to upgrade to Fedora.

share|improve this answer

In debian based system you can use sudo apt-get install foo to download you can use wget

share|improve this answer

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.