Fedora 12 Deployment Guide
Total Page:16
File Type:pdf, Size:1020Kb
Fedora 12 Deployment Guide Deployment, configuration and administration of Fedora 12 Douglas Silas John Ha David O'Brien Michael Hideo Don Domingo Michael Behm Deployment Guide Fedora 12 Deployment Guide Deployment, configuration and administration of Fedora 12 Edition 0 Author Douglas Silas [email protected] Author John Ha Author David O'Brien Author Michael Hideo Author Don Domingo Author Michael Behm Jeffrey Fearn Garrett LeSage Andrew Fitzsimon Michael Behm Sandra Moore Edward Bailey Karsten Wade Mark Johnson Andrius Benokraitis Lucy Ringland Copyright © 2009 Red Hat, Inc. and others. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. The original authors of this document, and Red Hat, designate the Fedora Project as the "Attribution Party" for purposes of CC-BY-SA. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. For guidelines on the permitted uses of the Fedora trademarks, refer to https://fedoraproject.org/wiki/ Legal:Trademark_guidelines. Linux® is the registered trademark of Linus Torvalds in the United States and other countries. Java® is a registered trademark of Oracle and/or its affiliates. XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. All other trademarks are the property of their respective owners. The Deployment Guide documents relevant information regarding the deployment, configuration and administration of Fedora 12. Preface xv 1. Document Conventions .................................................................................................. xv 1.1. Typographic Conventions .................................................................................... xv 1.2. Pull-quote Conventions ....................................................................................... xvi 1.3. Notes and Warnings .......................................................................................... xvii 2. We Need Feedback! .................................................................................................... xvii 3. Acknowledgements ...................................................................................................... xviii Introduction xix I. Package Management 1 1. Yum 3 1.1. Checking For and Updating Packages ................................................................... 3 1.1.1. Checking For Updates ............................................................................... 3 1.1.2. Updating Packages .................................................................................... 4 1.1.3. Updating Security-Related Packages .......................................................... 5 1.1.4. Preserving Configuration File Changes ....................................................... 5 1.2. Packages and Package Groups ............................................................................ 6 1.2.1. Searching, Listing and Displaying Package Information ................................ 6 1.2.2. Installing ................................................................................................... 8 1.2.3. Removing ................................................................................................ 10 1.3. Configuring Yum and Yum Repositories ............................................................... 10 1.3.1. Setting [main] Options .............................................................................. 11 1.3.2. Setting [repository] Options ...................................................................... 12 1.3.3. Using Yum Variables ................................................................................ 13 1.3.4. Creating a Yum Repository ...................................................................... 14 1.4. Yum Plugins ....................................................................................................... 14 1.4.1. Enabling, Configuring and Disabling Yum Plugins ...................................... 14 1.4.2. Installing More Yum Plugins ..................................................................... 15 1.4.3. Plugin Descriptions .................................................................................. 15 1.5. Additional Resources .......................................................................................... 16 2. PackageKit 19 2.1. Updating Packages with Software Update ............................................................ 19 2.2. Using Add/Remove Software .............................................................................. 20 2.2.1. Refreshing Software Sources (Yum Repositories) ...................................... 21 2.2.2. Finding Packages with Filters ................................................................... 22 2.2.3. Installing and Removing Packages (and Dependencies) ............................. 23 2.2.4. Installing and Removing Package Groups ................................................. 24 2.2.5. Viewing the Transaction Log .................................................................... 25 2.3. PackageKit Architecture ...................................................................................... 25 2.4. Additional Resources .......................................................................................... 27 3. RPM 29 3.1. RPM Design Goals ............................................................................................. 29 3.2. Using RPM ........................................................................................................ 30 3.2.1. Finding RPM Packages ............................................................................ 30 3.2.2. Installing .................................................................................................. 31 3.2.3. Uninstalling .............................................................................................. 33 3.2.4. Upgrading ............................................................................................... 34 3.2.5. Freshening .............................................................................................. 35 3.2.6. Querying ................................................................................................. 36 v Deployment Guide 3.2.7. Verifying .................................................................................................. 37 3.3. Checking a Package's Signature ......................................................................... 38 3.3.1. Importing Keys ........................................................................................ 38 3.3.2. Verifying Signature of Packages ............................................................... 39 3.4. Practical and Common Examples of RPM Usage ................................................. 39 3.5. Additional Resources .......................................................................................... 41 3.5.1. Installed Documentation ........................................................................... 41 3.5.2. Useful Websites ....................................................................................... 41 3.5.3. Related Books ......................................................................................... 41 II. Network-Related Configuration 43 4. Network Interfaces 45 4.1. Network Configuration Files ................................................................................ 45 4.2. Interface Configuration Files ................................................................................ 46 4.2.1. Ethernet Interfaces .................................................................................. 46 4.2.2. IPsec Interfaces ....................................................................................... 49 4.2.3. Channel Bonding Interfaces ..................................................................... 50 4.2.4. Alias and Clone Files ............................................................................... 51 4.2.5. Dialup Interfaces ...................................................................................... 52 4.2.6. Other Interfaces ....................................................................................... 53 4.3. Interface Control Scripts ..................................................................................... 54 4.4. Configuring Static Routes ................................................................................... 56 4.5. Network Function Files ....................................................................................... 58 4.6. Additional Resources .......................................................................................... 58 4.6.1. Installed Documentation ........................................................................... 58 5. Network Configuration 59 5.1. Overview ...........................................................................................................