LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hi i am pravz. (https://www.linuxquestions.org/questions/linux-newbie-8/hi-i-am-pravz-905600/)

pravz 09-29-2011 08:16 AM

hi i am pravz.
 
Hello
After installing the rhel5 in vmware work station, I can't install rpm packages into that machine. Can anyone help me plz? thx bye

acid_kewpie 09-29-2011 08:29 AM

please use useful thread titles in future. your choice of username is not relevant to your query.

please explain your situation A LOT more, what is happening?? "can't install" is not a useful description.

pravz 09-29-2011 08:41 AM

I am sry 4 dat.
Actually i dont know how to install the rpm packages into rhel5 using dvd. Can u plz help me thx bye

jdkaye 09-29-2011 08:49 AM

Hi pravz,
Please write in normal English. I don't really understand 4 dat and other things. Do you have a contract with Red Hat? I think you have to pay them to use their support.
jdk

pravz 09-29-2011 08:53 AM

I am asking that how to install packages in a linux server from dvd? that means how the linux machine detect the dvd.can u reply with commands plz?

TB0ne 09-29-2011 08:56 AM

Quote:

Originally Posted by pravz (Post 4485543)
I am sry 4 dat.
Actually i dont know how to install the rpm packages into rhel5 using dvd. Can u plz help me thx bye

Again, don't use text-speak. Also, don't post the same question more than once, don't hijack someone elses thread, and don't re-open old threads. You posted this same question in a three-year old thread about something else, too.

Read the man pages on the rpm command. Basic syntax is "rpm -i <package name>.rpm", and you have to run that command as root. However, the best way to do this would be to use the yum command, as in "yum install <package name>", since it will install all the package dependencies automatically. This will only work, though if you're PAYING for RedHat Enterprise...if you're not, then you shouldn't be using it, and should be using CentOS instead.

deep27ak 09-29-2011 09:11 AM

If you are using RPM to install a particular package then you will have to mention the full path of the package with the command.

The syntax would be something like this

Code:

#rpm -ivh (path of the package)

If you want to install from the RHEL 5.2 dvd then manually mount the dvd on your linux machine and go the directory where you can fine the rpms.

For the RHEL 5.2 the default location is /RHELx.x.x/Server/Packages/

So, simply use this command

Code:

#rpm -ivh /RHELx.x.x/Server/Packages/(package name)

But I would suggest you to use YUM instead of RPM but you will need to configure YUM manually as using RPM will give problems with dependencies.

BEST OF LUCK


All times are GMT -5. The time now is 09:11 AM.