LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-26-2008, 12:13 AM   #1
tester^_^
Member
 
Registered: Apr 2006
Location: somewhere in malaysia
Distribution: redhat
Posts: 78

Rep: Reputation: 15
rpm


how to install .rpm file correctly

i have used this command
[root@firdaus Desktop]# rpm --ivh prozgui-2.0.0-1.src.rpm

but have this result
--ivh: unknown option
 
Old 06-26-2008, 12:20 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
1st you do realize that the rpm you have listed is a source (src) rpm and not a binary rpm?


What version of RedHat are you running? Depending on version there are better ways to do this.

Try a single dash instead of a double dash.
 
Old 06-26-2008, 12:33 AM   #3
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Rep: Reputation: 32
rpm -ivh (single dash only) not --ivh

Last edited by tajamari; 06-26-2008 at 12:35 AM.
 
Old 06-26-2008, 02:11 AM   #4
tester^_^
Member
 
Registered: Apr 2006
Location: somewhere in malaysia
Distribution: redhat
Posts: 78

Original Poster
Rep: Reputation: 15
i use RHEL5.

i used single dash and the result like this.. is it ok?
root@firdaus Desktop]# rpm -ivh prozgui-2.0.0-1.src.rpm
1rozgui ########################################### [100%]

how can i know this program is correctly install?
 
Old 06-26-2008, 02:58 AM   #5
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
the src.rpm should be build to binary rpm and then install.
 
Old 06-26-2008, 03:09 AM   #6
tester^_^
Member
 
Registered: Apr 2006
Location: somewhere in malaysia
Distribution: redhat
Posts: 78

Original Poster
Rep: Reputation: 15
how do i build this src rpm to binary rpm
 
Old 06-27-2008, 03:13 AM   #7
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
do the following

first install the source with the command.

#rpm -ivh packagname.src.rpm
when installed you will get a file on my system the path is below check for your system then type the command.
this will build the binrary package

#rpmbuild -bb /usr/src/redhat/SPEC/packagename.spec

then go the the RPM directory where the binary package is

in my system it is

/usr/src/redhat/RPMS/package.rpm

then install the binary package with the command.

#rpm -ivh /usr/src/redhat/RPMS/package.rpm

hope it will help

thanks
shahz
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 5: rpm --aid or rpmdb-redhat.rpm no longer supported mjcocat Linux - Enterprise 1 06-05-2008 09:41 PM
rpm -i --prefix=/home/user package.src.rpm doesn't work? registering Linux - Software 2 07-18-2007 12:28 PM
counter part of "rpm -ivh --force kernel....rpm in slackware b0nd Slackware 2 01-28-2006 08:46 PM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 10:22 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration