Total 8. Running transaction test Transaction test succeeded. Installed: httpd Note : The yum remove command removes the packages listed and any package that requires the packages being removed and packages which require those packages, and so on.
This can lead to unexpected removal of packages, so carefully review the list of packages to be removed. Available Groups: Container Management. Mandatory Packages: redhat-rpm-config rpm-build Default Packages: rpmdevtools Optional Packages: rpmlint. In RHEL 7 and later, groups are treated as objects, and are tracked by the system. As we saw, yum knows which repository any given package came from, so yum will hop on to the internet, find the repo, and see if a newer version is available.
This step is simple, if a newer version is found, yum will update our older package into the newer one! Once a given package has been updated to a newer version yum will update the entry in the local database to keep everything in order! The rest of the article gives more detailed explanations where we explore the answers to the following questions What is yum and what is the function of yum in our Linux systems?
What are repositories and what do they contain? Why software in Linux comes in the form of packages? So, let us begin! The following are the 5 main tasks of yum install new software hire new employees remove unnecessary software fire employees who are not needed anymore update software improve the skillset of employees upgrade system improve the entire organization, not just the employees and maintain a database about software installed in our system maintains the employee records!
Step 1: check the internal database Step 2: check the repository database Step 3: update old packages Step 4: update the internal database Let us learn each of these steps in more detail. Step 1: Check the internal database As we have seen in the article linked above , there is an internal database stored in our computers which contains information about all the software packages presently installed and the versions of each of the software package.
As you can see there are 3 columns, column1: shows the package name openssh-server. So that ends the explanations for Step 1 , let us go to the next step! Step 2: Check the repository database Repositories, simply put, are places on the internet where software is stored by the developers and maintainers of our distros.
The next step is to check the repository to see if any newer packages are available. Step 3: Update old packages to newer versions This step is simple, if a newer version is found, yum will update our older package into the newer one! However if the cache is still valid, nothing significant was deleted. Note that packages are not automatically deleted after they are downloaded. Using this option will force yum to download all the metadata the next time it is run.
Using this option will force yum to download the sqlite metadata the next time it is run, or recreate the sqlite metadata if using an older repo. As a convenience, if this command does not result in a completely empty cache due to the restrictions outlined at the beginning of this section, a message will be printed, saying how much disk space can be reclaimed by cleaning the remaining repos manually. For this purpose, a repo is considered clean when its disk usage doesn't exceed 64KB that is to account for directory entries and tiny metadata files such as "productid" that are never cleaned.
Valentin Magnan 3 2 2 bronze badges. Paul afk Paul afk 61 1 1 silver badge 3 3 bronze badges. Now you only need to use it. Henk Henk 2 2 silver badges 7 7 bronze badges. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back
0コメント