How do I install or upgrade an RPM file or package under Red Hat / Fedora / Suse Linux?

by Vivek Gite on March 28, 2006 · 4 comments

Q. How can I install or upgrade an RPM package under CentOS / RHEL / Fedora / Suse Linux?

A. To install or upgrade an rpm file or package you need to use rpm command. RPM is a RPM Package Manager (originally called Red Hat Package Manager). Both Novell Suse Linux and Red Hat Linux support (Fedora Linux) uses rpm.

To install an rpm you need to use following command (you must be a root user i.e. login as a root user):# rpm -ivh package.rpmTo upgrade an rpm package you need to use rpm command as follows:# rpm -Uvh package.rpmRed Hat enterprise Linux user can use up2date command to install or update package over Internet:# up2date -i package-nameFedora Linux user, use yum command to install or update package over Internet:# yum install packageFedora Linux Update package: # yum update package

See also:

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 4 comments… read them below or add one }

1 Rizwan Sahibzada May 16, 2008

it is really knowlegeable website.

Reply

2 Jagadeesh kumar.k[TPSS] November 18, 2008

It provides a good information abt the queries .
thanks a lot .

Reply

3 Phoe May 18, 2011

Hi. I have CentOS 64bit linux. Have autoconf 2.59. I tried “yum update autoconf” but that tells me there isn’t anything to update. How do I update it?

Reply

4 anu November 22, 2011

hey,

i have zip-2.31-2.el5.. i have to update it to a higher version.. please help… i am using centosa and i am completely new to linux. also in the command : rpm -Uvh package.rpm, where do i get that package from???

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 4 + 6 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: