LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-04-2007, 12:03 AM   #1
nadavvin
Member
 
Registered: May 2006
Distribution: ubuntu
Posts: 109

Rep: Reputation: 21
How do I get list of which packages one rpm depend on?


I try use in "rpm --requires pkg.rpm" but I get the help of rpm.

How do I get list of which packages one rpm depend on?
 
Old 01-04-2007, 12:21 AM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
rpm -q --requires
is what you need. You got the help because you missed the "-q"
 
Old 01-04-2007, 01:01 AM   #3
nadavvin
Member
 
Registered: May 2006
Distribution: ubuntu
Posts: 109

Original Poster
Rep: Reputation: 21
But then I get:

Code:
    Useage: pm [-f] [-i] WAVE_FILE_NAME PM_FILE_NAME
        -f      Remake LPC analysis even if the files already exist.
        -i      Invert the waveform first.
        -d      Write intermediate results to help finding
                good parameter values
 
Old 01-04-2007, 01:02 AM   #4
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
acording to that output, you tried to run the command "pm" instead of "rpm"
 
Old 01-04-2007, 01:05 AM   #5
nadavvin
Member
 
Registered: May 2006
Distribution: ubuntu
Posts: 109

Original Poster
Rep: Reputation: 21
you right sorry .


But then I get:
Code:
package /var/cache/apt/archives/perl-XML-XSLT_0.48-1.2.el4.rf_noarch.rpm is not installed

Last edited by nadavvin; 01-04-2007 at 01:06 AM.
 
Old 01-04-2007, 01:09 AM   #6
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Okay. Is this a mistake? Is this rpm installed or are you trying to find out what it needs before you install. If you do not have it installed, try giving rpm the absolute file location of the rpm, if you didn't before.
 
Old 01-04-2007, 01:24 AM   #7
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Rep: Reputation: 78
why not 1st do a rpm -qa

if it aint on that list then it aint installed via rpm.
 
Old 01-04-2007, 01:47 AM   #8
nadavvin
Member
 
Registered: May 2006
Distribution: ubuntu
Posts: 109

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by PatrickNew
Okay. Is this a mistake? Is this rpm installed or are you trying to find out what it needs before you install. If you do not have it installed, try giving rpm the absolute file location of the rpm, if you didn't before.
I give absolute position.

I want to do it to rpm which is not installed.

I want to try to build simple rpm management

or in nice word I want to create a recursive installed method.


rpm -qa only list installed packages.
 
Old 01-04-2007, 03:19 PM   #9
nadavvin
Member
 
Registered: May 2006
Distribution: ubuntu
Posts: 109

Original Poster
Rep: Reputation: 21
Is it impossible to do it????
 
Old 01-04-2007, 03:28 PM   #10
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
I'm not really sure why rpm -q --requires isn't working. Can you post your exact command and it's output?
 
Old 01-04-2007, 04:11 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If it's not installed you need the "-p" switch:
Code:
rpm -qp --requires perl-XML-XSLT-0.48-1.2.el4.rf.noarch.rpm
/usr/bin/perl  
perl(Carp)  
perl(Cwd)  
perl(File::Basename)  
perl(Getopt::Std)  
perl(LWP::Simple)  
perl(URI)  
perl(XML::DOM) >= 1.25
perl(XML::XSLT)  
perl(constant)  
perl(strict)  
perl(vars)  
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(VersionedDependencies) <= 3.0.3-1

I want to try to build simple rpm management
I wonder what's so bad about the other RPM package management tools it forces you to try and reinvent the wheel again instead of joining a devteam of choice.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
get list of latest list of packages bobwall Linux - Distributions 1 11-30-2004 03:48 PM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM
How do I get a current list of RPM packages installed on my system? needamiracle Linux - General 1 12-06-2002 05:38 PM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:06 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
Open Source Consulting | Domain Registration