Remove Software Packages and Dependencies for RPM-Based Distributions


yum remove [package]

One thing in yum's favor: Its command syntax is very user friendly. Want to install a package? yum install. Want to remove? yum remove. So if you're tired of XMMS, just run this command:

# yum remove xmms Setting up Remove Process Resolving Dependencies ---> Package xmms.i386 1:1.2.10-9 set to be erased Dependencies Resolved   Package  Arch  Version      Repository  Size Removing:   xmms     i386  1:1.2.10-9  installed    5.2 M Is this ok [y/N]: 


Even for something as simple as removing a software package, yum continues its habit of grabbing you by the lapels and telling you at length about its day. Press y to approve the uninstall, and you get a bit more data thrown at you:

Running Transaction Test Running Transaction     Removing  : xmms       #################### [1/1] Removed: xmms.i386 1:1.2.10-9 Complete! 


And now XMMS is gone. Notice that the dependencies that were installed by yum (detailed in the previous section, "Install Software Packages and Dependencies for RPM-Based Distributions") are not removed along with the xmms package. XMMS needed those dependencies to run, but they can still work on your computer with different programs, so yum allows them to remain (this is the default behavior of apt as well, as you'll see soon in "Remove Software Packages and Dependencies for Debian").



Linux Phrasebook
Linux Phrasebook
ISBN: 0672328380
EAN: 2147483647
Year: 2007
Pages: 288

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net