Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-29-2003, 05:39 PM   #1
Registered: Jun 2003
Location: Washington
Distribution: Fedora FC23, Raspbian, Ubuntu Precise via Chrome/Crouton
Posts: 358

Rep: Reputation: 43
Question redhat 9 rpm of SRPMS not installing?

Maybe I don't understand how rpm works, but here goes.

I am trying to install some sources from the RH9 SRPMS disk #1 (not the install, disk, but the SRPMS disks)

So I type and see:
rpm -ivh /mnt/cdrom/SRPMS/flex-2.5.4a-29.src.rpm
1:flex ###################### [100%]

Sure enough I see stuff like:
in the /usr/src/redhat directory.

However, all rpm -q's say this package is still not installed.

What am I doing wrong? Should not this package be in the rpm database?

P.S. when I double-click on the SRPMS rpm file from Nautilus, I get the root password certification prompt, but then the Install Packages agent does not seem to run.

Old 06-29-2003, 08:34 PM   #2
Registered: Jun 2003
Distribution: Redhat9/Slackware9
Posts: 35

Rep: Reputation: 15
rpm -ivh <package> installs packages ... so if u have a 'source' package ... it installs sources (not binaries)

to compile to binaries and install it ... u have to do something like :-

rpmbuild --rebuild <source package>
Old 06-29-2003, 09:15 PM   #3
Registered: Jun 2003
Location: Washington
Distribution: Fedora FC23, Raspbian, Ubuntu Precise via Chrome/Crouton
Posts: 358

Original Poster
Rep: Reputation: 43
Right, I do expect to sources, not binaries. I understand that.

It is just that rpm does not seem to store the source package in its database. i.e. after I install them I cannot erase them or whatever, as the package is not in the rpm database. Also I would expect that the tar.gz files would be untar'ed.

Since I am new (to linux, I am an old HP-UX hack), the behavior seems different with "source" packages. I am asking as to whether this behavior is as expected or a problem with my rpm or linux installation.
Old 07-21-2003, 04:43 PM   #4
Registered: Jul 2003
Distribution: Redhat
Posts: 88

Rep: Reputation: 15
tar.gz would be untar'ed only when you do

rpmbuild -ba /usr/src/redhat/SPECS/flex.spec

and this will leave untar'ed sources in /usr/src/redhat/BUILD directory.
Old 09-23-2003, 05:49 AM   #5
Registered: Aug 2003
Location: Finland
Distribution: Fedora 14, Ubuntu 10.4 LTS
Posts: 65

Rep: Reputation: 15
A newbie butts in with an inane question: wouldn't tar.gz file be unzipped and untarred with "tar" (i.e. tar -z.....)?


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
Installing Majordomo using RedHat RPM mhabirami Linux - Newbie 1 11-10-2004 12:39 AM
Installing MySQL in RedHat Linux 9.0 RPM mkrishnanand Linux - Software 1 03-19-2004 06:36 AM
Problem installing Apache 2.0.47 RPM on Redhat 9 linub Linux - Software 0 10-20-2003 06:04 PM
Installing new kernel with rpm on redhat kidd Linux - Newbie 5 07-17-2003 07:14 PM
installing samba-3.0alpha24-1.i386.rpm into RedHat 8 and RedHat 9 Linh Linux - Newbie 2 06-04-2003 05:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:57 PM.

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