In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "example usage of the yum command in the Linux system". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn the example usage of the yum command in the Linux system.
Yum syntax
Yum [options] [command] [package...]
Options: optional, options include-h (help),-y (when prompted by the installation process to select all "yes"),-Q (do not show the installation process), and so on.
Command: the operation to be performed.
Package: the object of the operation.
Yum common commands
1. Make a list of all updatable software commands: yum check-update
two。 Update all software commands: 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
6. Delete package command: yum remove 7. Find package command: yum search
8. Clear cache command:
Yum clean packages: clear the software packages in the cache directory
Yum clean headers: clears the headers in the cache directory
Yum clean oldheaders: clear the old headers in the cache directory
Yum clean, yum clean all (= yum clean packages; yum clean oldheaders): clear the software packages in the cache directory and the old headers
Example 1
Install pam-devel
[root@www ~] # yum install pam-develSetting up Install ProcessParsing package install argumentsResolving Dependencies
< ==先检查软件的属性相依问题-->Running transaction check--- > Package pam-devel.i386 0MB 00:05filelists.xml.gz 0.99.6.2-4.el5 set to be updated-- > Processing Dependency: pam = 0.99.6.2-4.el5 for package: pam-devel-- > Running transaction check--- > Package pam.i386 0vir 0.99.6.2-4.el5 set to be updatedfilelists.xml.gz 100% | = | 1.6 MB 00:05filelists.xml.gz 100% | = | 138 kB 00Rut00-> Finished Dependency Resolution. (omitted)
Example 2
Remove pam-devel
[root@www ~] # yum remove pam-develSetting up Remove ProcessResolving Dependencies
< ==同样的,先解决属性相依的问题-->Running transaction check--- > Package pam-devel.i386 04.el5 set to be erased-- 0.99.6.2-4.el5 set to be erased-- > Finished Dependency ResolutionDependencies Resolved==== Package Arch Version Repository Size====Removing: pam-devel i386 0.99.6.2-4.el5 installed 495 kTransaction Summary====Install 0 Package (s) Update 0 Package (s) Remove 1 Package (s) < = OK There is no problem of attribute dependency, simply remove a software Is this ok [y 4.el5Complete N]: yDownloading Packages:Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning Transaction Erasing: pam-devel # [1 Accord 1] Removed: pam-devel.i386 0virtual 0.99.6.2-4.el5Complete!
Example 3
Use the features of yum to find out what software names start with pam?
[root@www] # yum list pam*Installed Packagespam.i386 0.99.6.2-3.27.el5 installedpam_ccreds.i386 3-5 installedpam_krb5.i386 2.2.14-1 installedpam_passwdqc.i386 1.0.2-1.2.2 installedpam_pkcs11.i386 0.5.3-23 installedpam_smb.i386 1.1.7-7.2.1 installedAvailable Packages < = below is "upgradeable" or "uninstalled" pam.i386 0.99.6.2-4.el5 basepam-devel.i386 0.99.6.2-4.el5 basepam_krb5.i386 2.2.14-10 base Thank you for your reading The above is the content of "example usage of yum command in Linux system". After the study of this article, I believe you have a deeper understanding of the example usage of yum command in Linux system, and the specific usage needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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: 245
*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.