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

14th February 2009, 11:32 AM
|
|
Registered User
|
|
Join Date: Aug 2008
Location: Manchester , United Kingdom
Age: 38
Posts: 36

|
|
|
how to clean up left over obsolete packages no longer needed
hi all, when you install a software package in FC10 say for example wine, it installs loads of other stuff with it. but when you goto do su -c 'yum remove wine' it only removes the wine package, not the other stuff it installed with the package, how do you remove the other stuff. when i used to use Ubuntu. i could do sudo apt-get autoremove & autoclean to remove all the left over rubbish,. what i'm asking is how do you clean up the obsolete packages no longer needed by any other package installed on the system cheers
|

14th February 2009, 11:51 AM
|
 |
Administrator
|
|
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289

|
|
|
yum install yum-remove-with-leaves
Then:
yum --remove-with-leaves <insert-package-name(s)>
But it's seriously busted (was last time I checked - we had a thread and a bug report that's still open ?). Search the forums, you'll find it....
V
|

14th February 2009, 01:08 PM
|
|
Registered User
|
|
Join Date: Aug 2008
Location: Manchester , United Kingdom
Age: 38
Posts: 36

|
|
Thank you for the reply, work's like a charm. i tried it with yum --remove-with-leaves wine first but it came up with no --remove-with-leaves  then i tried yum remove wine and it worked, said it needed to erase 13 files, 13 files what got installed when i installed wine :cool, so it works 100% on my system. cheers again for teaching me something new that i didn't know about
|

14th February 2009, 01:12 PM
|
 |
Administrator
|
|
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289

|
|
|
I'm glad to hear it's working as expected - last time I tried it, it wanted to virtually erase my OS !!!
V
|

14th February 2009, 01:40 PM
|
|
Banned
|
|
Join Date: Jun 2008
Posts: 1,315

|
|
|

14th February 2009, 05:34 PM
|
|
Registered User
|
|
Join Date: Aug 2008
Location: Manchester , United Kingdom
Age: 38
Posts: 36

|
|
Thx Bee, a very good tip, I never even know you could disable Plugins without removing them  & thanx for the advice, I've disabled it, I'll keep it on the machine just in case i need to remove a big software package again tho, cheers for the heads up
|

14th February 2009, 06:16 PM
|
|
Banned
|
|
Join Date: Jun 2008
Posts: 1,315

|
|
|
|

14th February 2009, 06:27 PM
|
 |
Banned (for/from) behaving just like everybody else!
|
|
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307

|
|
|
You can also install the "yum-utils" package. It includes many useful package management tools, among which is "package-cleanup" that can be used to identify the no-longer-needed packages, among others.
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.
|

14th February 2009, 06:56 PM
|
|
Registered User
|
|
Join Date: Aug 2008
Location: Manchester , United Kingdom
Age: 38
Posts: 36

|
|
|
this is what i've got enabled right now Loaded plugins: fastestmirror, refresh-packagekit. I have got yum-utils installed but how do you use them ? the leaves plugin has been disabled
|

14th February 2009, 08:54 PM
|
 |
Administrator
|
|
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289

|
|
|
Read: man package-cleanup
Short story (run as root for best results):
> To find duplicate package: package-cleanup --dupes
> To find broken dependencies: package-cleanup --problems
> To find libraries not required by any other package(s): package-cleanup --leaves (CAUTION: just because a library is not REQUIRED does NOT mean it is useless - it may provide useful functionality feature(s) for other package(s)).
> To find all packages not required by any other package: package-cleanup --leaves --all (see CAUTION above)
> To find packages not originating from enabled repositories: package-cleanup --orphans
V
Last edited by Hlingler; 14th February 2009 at 09:09 PM.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 11:58 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|