nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

How do I install or upgrade an Linux RPM package?

This is a discussion on How do I install or upgrade an Linux RPM package? within the Getting started tutorials forums, part of the Linux Getting Started category; RPM Package Manager (originally Red Hat Package Manager, abbreviated RPM) is a package management system. The name RPM refers to ...

Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Linux answers from nixCraft.


Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-15-2007, 08:50 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
Posts: 586
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 8
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default How do I install or upgrade an Linux RPM package?

RPM Package Manager (originally Red Hat Package Manager, abbreviated RPM) is a package management system. The name RPM refers to two things: a software package file format, and a free software tool which installs, updates, uninstalls, verifies and queries software packaged in this format. RPM was intended primarily for Linux distributions; the file format RPM is the baseline package format of the Linux Standard Base.

RPM is Package Manager for
  1. Redhat
  2. Suse
  3. CentOS
  4. Fedora
  5. and many other Linux distributions

From the man page:
Quote:
rpm is a powerful Package Manager, which can be used to build, install, query, verify, update, and erase individual software packages. A package consists of an archive of files and meta-data used to install and erase the archive files. The meta-data includes helper scripts, file attributes, and descriptive information about the package. Packages come in two varieties: binary packages, used to encapsulate software to be installed, and source packages, containing the source code and recipe necessary to produce binary packages.
Install RPM package / file
To install a new package use command
Code:
rpm -ivh package.rpm
Install RPM package from internet
To install a new package from internet or over network use yum command:
Code:
yum install package-name
Upgrade RPM package
To upgrade an RPM package use command:
Code:
rpm -Uvh package.rpm
Suggested readings
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-05-2008, 01:10 PM
Junior Member
User
 
Join Date: Nov 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
shwetanaik is on a distinguished road
Default help for upgrading rpm

hi,

I am also looking for upgrading rpm.
I ve created my custom .spec file ,form which i am able to create rpm & instal it.
now i want to do for upgrade
currentally my .spec file has version 1 so for upgrade should ve create another spec file which mention verion 2 in that
i am biulding rpm using ant script.

also if i create another .spec so my rpm name will change.
please let me know what changes should ve do in .spec file to upgrade rpm
Reply With Quote
Reply

Tags
redhat , rpm , up2date , yum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How To Upgrade PHP sweta Ubuntu / Debian 0 05-02-2008 11:18 PM
Apply CentOS Linux package security updates from the Internet raj CentOS / RHEL / Fedora 0 04-22-2008 01:53 AM
netbsd package management add delete list packages jerry Getting started tutorials 2 03-24-2008 09:19 PM
Install deb package file howto chiku Linux software 1 01-03-2007 05:06 PM
How to solve apt-get upgrade problem sweta Getting started tutorials 3 01-19-2006 06:21 PM


All times are GMT +5.5. The time now is 02:12 AM.


Powered by vBulletin® Version 3.8.3 - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36