Let’s look at any documentation files belonging to the package: rpm -qd httpd Using rpm -qa can provide information about all the packages installed on the system. Now check the status of the rvice, and would should see active and running in the output: systemctl status rvice Use rpm to Query for Configuration, Documentation, and Information about Which Package Owns /sbin/httpd, as Well as All Installed PackagesĪfter installing a package like httpd, we can use rpm to query for its configuration details, documentation, and other information. This will do both: systemctl enable httpd -now Use the systemctl command to start the rvice, and enable it to start when the system boots. Now that we know the name of the actual package we need to install, we can do it: yum -y install httpd Knowing this, we can use yum to find which package includes (provides) such a file: yum provides httpd The Apache server comes with an httpd file. Use the yum command to search for any packages with apache or http in their names: yum search 'apache http' Use yum to Search for the Apache HTTP Package, Find What Provides /sbin/httpd, Install the Correct Package for the `httpd` Service, and Then Use the systemctl Command to Make Sure the `rvice` Starts This may take a little while, since we’re downloading updates for everything currently installed on the system. Next, let’s list the available updates: yum list updatesįinally, we need to update the software packages on the system: yum -y update Successfully complete this lab by achieving the following learning objectives: Assume That the YUM Metadata and Cache Are Out-Of-Date and Resolve the Issue so That We Can Update the Systemįirst, we’ll clean the existing YUM metadata and cache, and create a fresh one: yum clean all
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |