Yum Remove With List

3

Click here to load reader

Transcript of Yum Remove With List

Page 1: Yum Remove With List

#1

#2

#3

#4

#5

Home Forums Posting Rules Linux Help Fedora Set-Up Guides Fedora Magazine Ask Fedora Fedora Project

FedoraForum.org > Fedora 18/19/20 > Using Fedora

how to clean up left over obsoletepackages no longer needed

FedoraForum Search

Go

User Name User Name Remember Me?

Password Log in

Forgot Password? Join Us!

Register All Albums FAQ Today's Posts Search

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

Thread Tools Search this Thread Display Modes

14th February 2009, 12:32 PM

dj-toonz OfflineRegistered User

Join Date: Aug 2008Location: Manchester , United KingdomAge: 38Posts: 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 onlyremoves 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-getautoremove & 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 packageinstalled on the system cheers

14th February 2009, 12:51 PM

Hlingler OfflineAdministrator

Join Date: Sep 2006Location: Connellsville, PA, USAPosts: 11,290

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, 02:08 PM

dj-toonz OfflineRegistered User

Join Date: Aug 2008Location: Manchester , United KingdomAge: 38Posts: 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 mesomething new that i didn't know about

14th February 2009, 02:12 PM

Hlingler OfflineAdministrator

Join Date: Sep 2006Location: Connellsville, PA, USAPosts: 11,290

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, 02:40 PM

bee OfflineBanned

Join Date: Jun 2008Posts: 1,315

he'll change idea soon

I suggest to keep remove-with-leaves disabled by default, and manually enable that plugin only when you are going to uninstall something

To disable remove-with-leaves

Open this file:/etc/yum/pluginconf.d/remove-with-leaves.confand set:enabled = 0

Using remove-with-leaves

Open a new terminal and type:

Code:

yum --enableplugin=remove-with-leaves remove packageslist

how to clean up left over obsolete packages no lo... http://forums.fedoraforum.org/showthread.php?t...

1 of 3 01/04/2014 02:19 AM

Page 2: Yum Remove With List

#6

#7

#8

#9

#10

In that way, you could keep remove-with-leaves installed (and use it) without fearing to having your system wiped away at each update

bye!!!!!!

14th February 2009, 06:34 PM

dj-toonz OfflineRegistered User

Join Date: Aug 2008Location: Manchester , United KingdomAge: 38Posts: 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, 07:16 PM

bee OfflineBanned

Join Date: Jun 2008Posts: 1,315

very good!!! you're welcome!!!!!!

bye!!!!!!

14th February 2009, 07:27 PM

aleph OfflineBanned (for/from) behaving just like everybody else!

Join Date: Jul 2007Location: Beijing, ChinaPosts: 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 theno-longer-needed packages, among others.__________________I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.

14th February 2009, 07:56 PM

dj-toonz OfflineRegistered User

Join Date: Aug 2008Location: Manchester , United KingdomAge: 38Posts: 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 hasbeen disabled

14th February 2009, 09:54 PM

Hlingler OfflineAdministrator

Join Date: Sep 2006Location: Connellsville, PA, USAPosts: 11,290

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 - itmay 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 10:09 PM.

Tags

clean, left, longer, needed, obsolete, packages

« Previous Thread | Next Thread »

Posting Rules

You may not post new threadsYou may not post repliesYou may not post attachmentsYou may not edit your posts

BB code is OnSmilies are On[IMG] code is OnHTML code is Off

Forum RulesForum Jump

Using Fedora Go

how to clean up left over obsolete packages no lo... http://forums.fedoraforum.org/showthread.php?t...

2 of 3 01/04/2014 02:19 AM

Page 3: Yum Remove With List

Similar Threads

Thread Thread Starter Forum Replies Last Post

Packages needed for Unetbootin. ashmew2 Using Fedora 021st September 2008 07:07

PM

Software Updater and Add/Remove Packages no longer runs jbob286 Using Fedora 6 25th January 2007 11:44 PM

Needed Packages to compile Rick069 Using Fedora 2 7th June 2006 05:31 AM

clean smb.conf from FC4- needed alerav EOL (End Of Life) Versions 2 17th March 2006 10:37 PM

Add/Remove Packages no longer recognizes the CDs Erebus Using Fedora 5 10th August 2004 06:51 PM

Current GMT-time: 18:52 (Friday, 03-01-2014)

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.

how to clean up left over obsolete packages no lo... http://forums.fedoraforum.org/showthread.php?t...

3 of 3 01/04/2014 02:19 AM