In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Linux yum command how to use, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
1. Make a list of all updatable software
Command: yum check-update
two。 Install all updated softwar
Command: yum update
3. Install only the specified software
Command: yum install
4. Update only the specified software
Command: yum update
5. Make a list of all installable software
Command: yum list
Install and delete software with YUM
It is common to install system add and remove software, and yum is also competent for this task, as long as the software is installed by rpm.
The installation command is that yum install xxx,yum will query the database to see if there is a software package, if so, check its dependency conflict relationship, if there is no dependency conflict, then it is best to download and install; if so, it will give a prompt to ask whether you want to install the dependency at the same time, or delete the conflicting package, and you can make your own judgment.
The delete command is yum remove xxx, and just like the installation, yum queries the database and gives tips for resolving dependencies.
1. Install the software package with YUM
Command: yum install
two。 Delete a software package with YUM
Command: yum remove
Use YUM to query software information
We often encounter such a situation, want to install a software, only know that it is related to some aspect, but do not know its name. At this point, the query function of yum works. You can use commands such as yum search keyword to search, for example, we want to install an Instant Messenger, but do not know which, then you might as well use the command yum search messenger to search, yum will search the description of all available rpm, list all the description of rpm packages related to messeger, so we may get gaim,kopete and so on, and choose from.
Sometimes we come across the installation of a package, but do not know its purpose, we can use the yum info packagename instruction to get information.
1. Use YUM to find software packages
Command: yum search
two。 List all installable software packages
Command: yum list
3. List all updatable software packages
Command: yum list updates
4. List all installed packages
Command: yum list installed
5. List all packages that are installed but not within Yum Repository
Command: yum list extras
6. List the specified software packages
Command: yum list
7. Use YUM to get package information
Command: yum info
8. List information for all software packages
Command: yum info
9. List all updatable package information
Command: yum info updates
10. List all installed package information
Command: yum info installed
11. List all software packages installed but not within Yum Repository
Command: yum info extras
twelve。 List the files provided by the software package
Command: yum provides
Clear the YUM cache
Yum stores downloaded packages and header in cache instead of automatically deleting them. If we think they take up disk space, we can use the yum clean instruction to clear them. More accurately, we can use yum clean headers to clear header,yum clean packages, clear downloaded rpm packages, and yum clean all.
1. Clear the software packages under the cache directory (/ var/cache/yum)
Command: yum clean packages
two。 Clear the headers under the cache directory (/ var/cache/yum)
Command: yum clean headers
3. Clear the old headers under the cache directory (/ var/cache/yum)
Command: yum clean oldheaders
4. Clear the software packages under the cache directory (/ var/cache/yum) and the old headers
Command: yum clean, yum clean all (= yum clean packages; yum clean oldheaders)
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.