LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-30-2005, 12:29 PM   #1
hpladd
Member
 
Registered: Feb 2003
Distribution: Kubuntu
Posts: 142

Rep: Reputation: 15
rpm ?


Trying my best to learn about rpm (s), and am installing games using rpm -- to gain experience working with rpm(s).

Here's my snag:

The game Maelstrom depends upon libSDL-1.2.so.6. I know that the file is on one of the three Red Hat 9 cds because Maelstrom has worked before (on previous installs from the same cd set).

I've tried "find /mnt/cdrom -iname libSDL-1.2.so.6" on all three cds. No luck.

I figure that the file is buried in one of the rpm packages.

Is there a way to query the packages and determine what files they will install?

Put another way; how can I discover which rpm on the cd(s) will install the libSDL-1.2.so.6 file?
 
Old 06-30-2005, 12:36 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You need to install the SDL packages. Do you have a broadband connection? If so you can use YUM to install packages and check for dependencies.
 
Old 06-30-2005, 01:30 PM   #3
hpladd
Member
 
Registered: Feb 2003
Distribution: Kubuntu
Posts: 142

Original Poster
Rep: Reputation: 15
Thanks Much,

That's not quite what I was looking for however. I could work through Red Hat add/remove packages and allow it automatically install Maestrom and it's dependents from the cds.

I'm trying to learn more about using rpm(s). Specifically if there is a query command that searches uninstalled packages to determine what files they contain.

I'm looking for a command similar to rpm -qf which queries an installed file and then returns information aboutn the package it came from.

I'm trying to query an installation cd in order to find which package contains the needed files.

If SDL had not been so prominate in the name of libSDL-1.2.so.6 file, how would you have known that I needed the SDL packages?

Thanks again.
 
Old 06-30-2005, 03:21 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Code:
rpm -q --whatprovides libSDL-1.2.so.6
Code:
yum whatprovides libSDL-1.2.so.6
You can find out more at rpm.org. The reason why I mentioned yum is that it is the tool used for installing packages on Fedora and its derivatives, with automatic dependency resolution. System-config-packages is an almost useless app, because when you upgrade the packages installed on your system, it does not recognise this and causes all sorts of problems.

Last edited by reddazz; 06-30-2005 at 03:23 PM.
 
Old 07-02-2005, 08:26 PM   #5
kriidler
Member
 
Registered: May 2005
Location: Potchefstroom SA
Distribution: Slackware
Posts: 85

Rep: Reputation: 15
Quote:
Originally posted by reddazz
Code:
rpm -q --whatprovides libSDL-1.2.so.6
Code:
yum whatprovides libSDL-1.2.so.6
You can find out more at rpm.org. The reason why I mentioned yum is that it is the tool used for installing packages on Fedora and its derivatives, with automatic dependency resolution. System-config-packages is an almost useless app, because when you upgrade the packages installed on your system, it does not recognise this and causes all sorts of problems.
Tell me reddazz, do you know if YUM is available for Mandrake 10.0?


K
 
Old 07-03-2005, 03:50 AM   #6
OhMyAchingGut
Member
 
Registered: May 2004
Location: Ohio
Distribution: Slackware-current/10.1/10.0, Splack 10, Suse 9.2, NetBSD 2.0, OpenBSD 3.6, Solaris 8
Posts: 85

Rep: Reputation: 15
mandrake has a similar tool called urpmi.

you'll find virtually every distro has a tool like this...and that usually they have their own unique tools. Sometimes they get ported to other distros, sometimes there are additional 3rd party ones, but there is always some app for this purpose.
 
Old 07-11-2005, 02:10 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
For mandriva, urpmi does the job as mentioned above. It has more features than yum in my personal opinion. You can find a guide at zebulon.org.uk and instructions at easyurpmi.
 
  


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
rpm -Uvh does not work with header & rpm files in /var/spool/up2date jd_no7 Linux - Software 1 05-17-2004 05:24 PM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 09:22 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 07:19 AM
Suggestions requested on upgrading a stock RH rpm with a third-party rpm obarney Linux - Software 5 05-21-2003 05:07 PM
Help : rpm dependency error when install video driver rpm ymdwxm Linux - Software 1 04-04-2003 04:55 PM

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

All times are GMT -5. The time now is 11:27 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