Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th March 2012, 09:31 PM
ToddAndMargo Offline
Registered User
 
Join Date: Feb 2010
Posts: 126
linuxfirefox
"rpm -e" without the "e" question

Hi All,

When I issue an "rpm -e xxx" to remove a package, it will tell me who all depends on the package and refuse to delete if there are any dependencies.

Question: is there a way to get a list of the dependencies without issuing an "e"? In other words,
tell me what the dependencies are but don't delete.

Many thanks,
-T
Reply With Quote
  #2  
Old 8th March 2012, 09:54 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,141
linuxchrome
Re: "rpm -e" without the "e" question

The rpm command does not have quite exactly what you are looking for here. The better option is to use yum:
Code:
yum erase package
And see what other packages yum would erase as well, which would be packages that depended on the initial package you told yum to erase. Just don't use the "-y" option. Once you see the list, then you can just enter "n" to abort the erase operation.
Reply With Quote
  #3  
Old 8th March 2012, 10:03 PM
ToddAndMargo Offline
Registered User
 
Join Date: Feb 2010
Posts: 126
linuxfirefox
Re: "rpm -e" without the "e" question

I am not finding "-y" in the man page. (Doesn't mean it is not there, Just that I can not find it.)

While looking for "y", I did find
Quote:
--test Don’t really uninstall anything, just go through the motions.
Is "--test" what I am looking for?

Many thanks,
-T
Reply With Quote
  #4  
Old 8th March 2012, 10:11 PM
marko's Avatar
marko Online
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,491
solarisfirefox
Re: "rpm -e" without the "e" question

Quote:
Originally Posted by ToddAndMargo View Post
Hi All,

When I issue an "rpm -e xxx" to remove a package, it will tell me who all depends on the package and refuse to delete if there are any dependencies.

Question: is there a way to get a list of the dependencies without issuing an "e"? In other words,
tell me what the dependencies are but don't delete.

Many thanks,
-T
@ToddAndMargo:
There's a yum way to do that:
Quote:
yum deplist XXX
or there's rpm "requires" (R flag with query flag) :
Quote:
rpm -qR XXX
the rpm way might be better in cases where your system isn't on the internet, yum deplist will go look at
the repositories and complain if it's not on the internet.

Neither requires root to run since they are non-writing commands (they don't change any software)

Last edited by marko; 8th March 2012 at 10:15 PM.
Reply With Quote
  #5  
Old 8th March 2012, 10:34 PM
ToddAndMargo Offline
Registered User
 
Join Date: Feb 2010
Posts: 126
linuxfirefox
Re: "rpm -e" without the "e" question

Cool. It looks like the "--deplist" is what I am looking for. (I want to know who depends on the installed package.) "--qR" tells me what the current installed package depends on, not who else needs the current package.

I wrote both your tips into my "rpm cheat sheet" file.

Thank you!
-T
Reply With Quote
  #6  
Old 8th March 2012, 10:54 PM
marko's Avatar
marko Online
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,491
solarisfirefox
Re: "rpm -e" without the "e" question

Oh, I got what you wanted wrong. yeah, the rpm -qR goes the other way. sorry.
Reply With Quote
  #7  
Old 8th March 2012, 11:48 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,141
linuxchrome
Re: "rpm -e" without the "e" question

"-y" is a yum option, not an rpm option which you might have been looking for.
Quote:
-y, --assumeyes
Assume yes; assume that the answer to any question which would be asked is yes.
Configuration Option: assumeyes
Reply With Quote
  #8  
Old 9th March 2012, 03:34 AM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,024
linuxchrome
Re: "rpm -e" without the "e" question

There's also

rpm -q --whatrequires <package_name> but it doesn't always work properly--that is, it will say, nothing requires it, but when you then say, Ah, I must have installed it by mistake, silly me, and do yum remove <package> it will want to remove 20 other things.

I mention it more for completeness---unfortunately, it really doesn't work well.
Reply With Quote
Reply

Tags
question, rpm e

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unpredictable "delete" "move to trash" or "cut" file menu option dorianrenato Using Fedora 1 21st November 2011 03:09 AM
"ls" and "cd" treat ".." differently inside symlinked directories bnorman Using Fedora 0 19th June 2008 04:49 PM
HOW TO MOUNT "C" "D" "E" LOCAL HARDDISK PARTITION ketan_hk Using Fedora 6 6th September 2007 01:10 AM
Metacity and "Xlib: extension "SHAPE" missing on display ":0.0". debu_sagii Using Fedora 0 29th August 2007 05:53 PM
Error:visibility arg must be one of "default", "hidden", "protected" or "internal" wangfeng Using Fedora 0 23rd May 2005 04:59 AM


Current GMT-time: 07:03 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat