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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

88CHAPTER 3Operating System UpdatesTIPThe -y option can be used with yum to assume the answer “yes” to any questionsasked, such as whether to install package dependencies. For example:yum -y install httpdWhen a yum command is executed, the progress of the transaction is displayed so thatyou watch the progress. Listing 3.1 shows the progress of the command yum -y installhttpd. As you can see, it finds the httpd package, downloads the header for it, determinesits software dependencies, lists the packages to be installed, and finally installs them.Before completing and returning to the command prompt, it lists the packages installed,the additional packages installed to resolve dependencies, and that the transaction iscomplete.LISTING 3.1Example YUM TransactionLoading “installonlyn” pluginLoading “rhnplugin” pluginSetting up Install ProcessSetting up repositoriesrhel-x86_64-server-5 100% |=========================| 950 B 00:00Reading repository metadata in from local filesprimary.xml.gz 100% |=========================| 634 kB 00:01################################################## 2088/2088Parsing package install argumentsResolving Dependencies--> Populating transaction set with selected packages. Please wait.---> Downloading header for httpd to pack into transaction set.httpd-2.2.3-5.el5.x86_64.rp 100% |=========================| 53 kB 00:00---> Package httpd. x86_64 0:2.2.3-5.el5 set to be updated--> Running transaction check--> Processing Dependency: libapr-1.so.0 for package: httpd--> Processing Dependency: libaprutil-1.so.0 for package: httpd--> Restarting Dependency Resolution with new changes.--> Populating transaction set with selected packages. Please wait.---> Downloading header for apr to pack into transaction set.apr-1.2.7-10.x86_64.rpm 100% |=========================| 10 kB 00:00---> Package apr.x86_64 0:1.2.7-10 set to be updated---> Downloading header for apr-util to pack into transaction set.apr-util-1.2.7-3.x86_64.rpm 100% |=========================| 7.2 kB 00:00---> Package apr-util.x86_64 0:1.2.7-3 set to be updated--> Running transaction check--> Processing Dependency: libpq.so.4 for package: apr-util--> Restarting Dependency Resolution with new changes.--> Populating transaction set with selected packages. Please wait.---> Downloading header for postgresql-libs to pack into transaction set.

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

Saved successfully!

Ooh no, something went wrong!