In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to use Yum efficiently". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Yum is a Shell front-end package manager in Fedora and RedHat as well as in CentOS. Based on RPM package management, RPM packages can be downloaded and installed automatically from designated servers, dependencies can be automatically dealt with, and all dependent software packages can be installed at one time without tedious downloading and installation.
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 2. 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 commands: yum list 6. Delete package command: yum remove 7. Find the package command: yum search 8. Clear cache command:
Yum clean packages: clear the packages in the cache directory yum clean headers: clear the headersyum clean oldheaders in the cache directory: clear the old headersyum clean in the cache directory, yum clean all (= yum clean packages; yum clean oldheaders): clear the software packages in the cache directory and the old headers instance 1
Install pam-devel
[root@www ~] # yum install pam-develSetting up Install ProcessParsing package install argumentsResolving Dependencies Running transaction check--- > Package pam-devel.i386 0vir 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 0000-> Finished Dependency Resolution. (omitted) instance 2
Remove pam-devel
[root@www] # yum remove pam-develSetting up Remove ProcessResolving Dependencies Running transaction check--- > Package pam-devel.i386 0vir 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) # [1 pam-devel.i386 1] Removed: pam-devel.i386 0rig 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 "how to use Yum efficiently" ends here Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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: 265
*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.