Loading Search...

Saturday, December 26, 2009

yum remove all dependencies

playing with fedora these few days.

yum is great with it's delta package system. which only download changed file instead of the whole package.

one thing i dont like is that yum do not know what dependencies have been installed and should be removed.

debian aptitude works out of the box.
and we can add --auto-orphans to mandriva urpme

some people suggest 'package-cleanup --leaves' to list leaf node (package that no other package depends on).

i try that, and it list libvirt which is needed by virt-manager. so i cant fully trust that.

more googling i found yum plugin remove with leaves package.

su -c 'yum install yum-plugin-remove-with-leaves'
yum remove --remove-leaves package-tobe-removed

still need to test this

tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain


Jana said...

Is there any other way to remove all the dependencies we installed for a package? (other than manually removing one by one, since it is a huge list).

dennyhalim.com said...

did you read this at all:

malikons said...

this is not the way it'd work. simple is, try "yum history" and locate the yum activity you are not happy with and then do "yum history undo ". this will undo that particular yum activity.

dennyhalim.com said...

i just try yum history.
it only show me date and time and the action (install/erase)

there's no info what i installed or erased.
it seems to me pretty much useless info...

Anonymous said...

Interesting blo. Waiting for more info

Bob said...

there is a lot more to yum history than just IDs and dates... you can search by package name and get more info about each transaction (e.g., every package that was altered). check out this article...