-1

I was installing the RedHat 5.5 64 bit. But in hurry I forgot to install the Packages needed. And I don't want to install RH again.

How can I install packages after installation?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
OmiPenguin
  • 4,168
  • 34
  • 79
  • 111
  • Do you have RHN account or not? – daisy Oct 20 '12 at 14:11
  • No my dear. We had a lot of conversation on this topic in this thread http://unix.stackexchange.com/questions/50465/how-to-create-local-repositories-in-rhel – OmiPenguin Oct 20 '12 at 14:15
  • Wait, why do you ask here again...I think the solution is nearly the same, build a local repo or just do the `rpm -ivh XXX.rpm` – daisy Oct 20 '12 at 14:19
  • 1
    Also If you were just learning about RedHat, use CentOS instead, which is based on RedHat – daisy Oct 20 '12 at 14:21

1 Answers1

2

You have to use yum command to install packages.

First after installing Redhat, follows following steps to install packages.

$ sudo yum update

Then install a package using the following command:

$ sudo yum install <package-name>

Note: "package-name" should be exact as the name of the package present in the redhat repository.

To search the exact name of the package using a keyword, use the following yum option:

$ yum search <keyword>
pradeepchhetri
  • 9,859
  • 12
  • 51
  • 59