Removing packages

Removing a package from your system is similar to the installation process. Two options remove packages: remove and erase. They perform the same function, but remove should be used with caution because it also can uninstall dependent packages:

# yum remove httpd
Loaded plugins: refresh-packagekit
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.i586 0:2.2.11-8 set to be erased
--> Processing Dependency: httpd >= 2.2.0 for package: \
                    gnome-user-share-2.26.0-2.fc11.i586
--> Running transaction check
---> Package gnome-user-share.i586 0:2.26.0-2.fc11 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved
=========================================================================
 Package                Arch       Version          Repository       Size
=========================================================================
Removing:
 httpd                  i586       2.2.11-8         installed       2.6 M

Removing for dependencies:
 gnome-user-share       i586       2.26.0-2.fc11    installed       809 k

Transaction Summary
=========================================================================
Install      0 Package(s)
Update       0 Package(s)
Remove       2 Package(s)

Is this ok [y/N]: Y

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.