12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Retrieving Software from RHN with YUM 93As with the install and update commands, can be a one package name ormultiple package names separated by spaces. Package versions and architectures can bespecified as in the following examples:yum remove example-2.3.4-1yum remove example-2.3.4-1.i686Packages can be removed with the rpm -e command as later discussed inChapter 5, “Working with RPM Software”; however, deleting packages with YUM has thebig advantage of resolving software dependencies for you. For example, Listing 3.2 showsthe results of the yum remove httpd command. As you can see, many other packagesdepend on the httpd package and must be removed at the same time.3LISTING 3.2Removing Software with the yum CommandLoading “rhnplugin” pluginLoading “installonlyn” pluginSetting up Remove ProcessResolving Dependencies--> Populating transaction set with selected packages. Please wait.---> Package httpd.x86_64 0:2.2.3-5.el5 set to be erased--> Running transaction checkSetting up repositoriesrhel-x86_64-server-5 100% |=========================| 950 B 00:00Reading repository metadata in from local files--> Processing Dependency: webserver for package: webalizer--> Processing Dependency: httpd = 2.2.3-5.el5 for package: httpd-manual--> Processing Dependency: httpd >= 2.0.40 for package: mod_python--> Processing Dependency: httpd-mmn = 20051115 for package: mod_perl--> Processing Dependency: httpd-mmn = 20051115 for package: php--> Processing Dependency: httpd-mmn = 20051115 for package: mod_python--> Processing Dependency: httpd-mmn = 20051115 for package: mod_ssl--> Processing Dependency: httpd = 0:2.2.3-5.el5 for package: mod_ssl--> Restarting Dependency Resolution with new changes.--> Populating transaction set with selected packages. Please wait.---> Package mod_python.x86_64 0:3.2.8-3.1 set to be erased---> Package php.x86_64 0:5.1.6-3 set to be erased---> Package mod_ssl.x86_64 1:2.2.3-5.el5 set to be erased---> Package httpd-manual.x86_64 0:2.2.3-5.el5 set to be erased---> Package webalizer.x86_64 0:2.01_10-30.1 set to be erased---> Package mod_perl.x86_64 0:2.0.2-6.1 set to be erased--> Running transaction check--> Processing Dependency: php = 5.1.6-3 for package: php-ldap--> Restarting Dependency Resolution with new changes.--> Populating transaction set with selected packages. Please wait.---> Package php-ldap.x86_64 0:5.1.6-3 set to be erased

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!